Sign in
All templates
Template· Schemas

Search tool JSON schema

Ready-to-paste tool schema for OpenAI/Anthropic function calling.

Sign in to save
#tool-schema#function-calling
json
{
  "name": "search_docs",
  "description": "Search the company help center. Returns up to 5 chunks with source URLs. Use focused queries (3-8 words). Call multiple times with different phrasings rather than one long query.",
  "input_schema": {
    "type": "object",
    "properties": {
      "query": {
        "type": "string",
        "description": "A focused search query, 3-8 words."
      },
      "top_k": {
        "type": "integer",
        "description": "Number of chunks to return (1-10).",
        "default": 5,
        "minimum": 1,
        "maximum": 10
      }
    },
    "required": ["query"]
  }
}