Skip to main content
Glama

Search documentation

search
Read-onlyIdempotent

Use when you know the topic but need authoritative pages. Searches titles, descriptions, headings and body; deduplicates chunks into pages in Fumadocs full-text relevance order (ZBSearch). Rank is a position, not confidence. Read a result with get_page; narrow query or section if has_more is true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum pages to return, from 1 to 20; defaults to 5.
queryYesKeywords to find in documentation titles, descriptions, headings and body; 2 to 500 characters.
sectionNoOptional top-level docs section, for example discovery, mcp-servers or retrievability; root is the docs index page. Unknown sections return no matches.

Output Schema

NameRequiredDescriptionDefault
rankingYesExplanation of the relevance ordering and rank semantics.
resultsYesDistinct matching documentation pages, bounded by the caller limit.
has_moreYesMore matching pages exist beyond this limit. Narrow query or section, increase limit up to 20, or browse list_pages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / section / description
      Previous value: -"Optional top-level docs section, for example discovery, mcp-servers or retrievability. Unknown sections return no matches."New value: +"Optional top-level docs section, for example discovery, mcp-servers or retrievability; root is the docs index page. Unknown sections return no matches."
  2. Changed7 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 5,
      +  "description": "Maximum pages to return, from 1 to 20; defaults to 5.",
      +  "maximum": 20,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / locale
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / query / description
      Added value: +"Keywords to find in documentation titles, descriptions, headings and body; 2 to 500 characters."
    • addedInput schema / properties / query / maxLength
      Added value: +500
    • addedInput schema / properties / query / minLength
      Added value: +2
    • addedInput schema / properties / section
      Added value: +{
      +  "description": "Optional top-level docs section, for example discovery, mcp-servers or retrievability. Unknown sections return no matches.",
      +  "pattern": "^[a-z0-9-]+$",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "has_more": {
      +      "description": "More matching pages exist beyond this limit. Narrow query or section, increase limit up to 20, or browse list_pages.",
      +      "type": "boolean"
      +    },
      +    "ranking": {
      +      "description": "Explanation of the relevance ordering and rank semantics.",
      +      "type": "string"
      +    },
      +    "results": {
      +      "description": "Distinct matching documentation pages, bounded by the caller limit.",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "description": {
      +            "description": "Published page summary.",
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "Stable documentation path, independent of rank.",
      +            "type": "string"
      +          },
      +          "rank": {
      +            "description": "1-based position within this result set, lower is earlier; not confidence and not comparable across queries.",
      +            "maximum": 20,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "slug": {
      +            "description": "Slash-separated docs slug for /api/md; index identifies the docs home.",
      +            "type": "string"
      +          },
      +          "snippet": {
      +            "description": "Matching body or heading excerpt, at most 600 characters.",
      +            "maxLength": 600,
      +            "type": "string"
      +          },
      +          "title": {
      +            "description": "Published page title.",
      +            "type": "string"
      +          },
      +          "updated_at": {
      +            "description": "Content revision time, or last verification date where a revision time is unavailable.",
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Canonical source URL; pass this to get_page.",
      +            "format": "uri",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "title",
      +          "description",
      +          "url",
      +          "slug",
      +          "snippet",
      +          "rank"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 20,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "results",
      +    "has_more",
      +    "ranking"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only, idempotent, closed-world and non-destructive semantics, so the description is free to add genuinely new behavioral context. It does: the ranking is a position rather than a confidence score, chunks are deduplicated into pages, the ordering engine is Fumadocs/ZBSearch, and has_more signals that results were truncated — all of which change how an agent should interpret and follow up on results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact sentences, each earning its place: trigger first, then search mechanics, then follow-up guidance. Ordering is front-loaded with the usage condition and nothing is padded or repeated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read tool with full annotations and an output schema, everything an agent needs is present: when to call it, what corpus is searched, how results are ranked and grouped, and how to continue. Return values are rightly left to the output schema rather than duplicated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all three parameters (query, section, limit) are already documented with ranges, defaults and format constraints, which sets the baseline at 3. The description restates the query field list and mentions narrowing by query or section, but adds no syntax or behavioral nuance beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Searches titles, descriptions, headings and body') and states the resulting behavior (deduplicating chunks into pages, relevance ordering). It also distinguishes itself from the sibling tool by naming get_page as the read step that follows a search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use when you know the topic but need authoritative pages' gives a clear triggering condition and implicitly excludes exploratory browsing where the topic is unknown. It also routes the agent forward ('Read a result with get_page') and gives a recovery action ('narrow query or section if has_more is true'), though it never names the browsing alternative (e.g. list_pages) to prefer when the topic is unknown.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.