Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Search documentation

search_documentation
Read-onlyIdempotent

Search documentation you can read for the words in query. hits holds the best matching sections first, each with tree, title, route, heading, anchor, excerpt, and score. text holds them as Markdown lines. Read one with read_documentation, route as page, anchor as section.

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_documentation"
  }
}

Input Schema

NameRequiredDescriptionDefault
treeNoOne tree to search; leave it out to search every tree you may read.
limitNoThe most hits, 1 to 20; 8 where absent.
queryYesA few words to search for, at most 200 characters.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's contribution is result behavior: hits are ordered best-match-first and come in two representations (`hits` objects and `text` as Markdown lines). That is genuinely additive with no output schema. It doesn't mention matching semantics (stemming, multi-word behavior) or empty-result behavior, so not a 5.

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 tight sentences, front-loaded with purpose, then return shape, then the next action. No filler — the terse field listing is justified because no output schema exists to carry it.

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 read-only search with no output schema, the definition supplies what an agent needs: what it searches, the ordering and shape of results, and the exact bridge to the read tool. Nothing required for correct invocation is missing.

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 `tree`, `limit`, and `query` are fully documented in the schema, including default and range. The description only restates that searching is for "the words in `query`" and does not add matching or tokenization semantics beyond it, so the baseline 3 applies.

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?

States a specific verb and resource ("Search documentation") plus the scoping fact that only documentation the caller may read is searched. It also distinguishes itself from the sibling by describing the follow-up handoff to read_documentation, so an agent knows this is the discovery step, not the retrieval step.

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?

Explicitly routes the agent onward: "Read one with `read_documentation`, `route` as `page`, `anchor` as `section`" — a concrete alternative with the mapping needed to invoke it. It lacks an explicit when-not clause (e.g., when to go straight to read_documentation), which keeps it below a 5.

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.

Resources