Skip to main content
Glama

Claude Platform Docs

Search docs

search_docs
Read-onlyIdempotent

Search Claude documentation (the guides and the API reference together) by keyword. Put a phrase in double quotes to match it exactly (case is ignored). Returns matching pages and API endpoints ranked by relevance, with snippets showing context around matches.

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

Input Schema

NameRequiredDescriptionDefault
kindNoOnly return results of one kind: "prose_page" (guide pages), "api_sdk_method" (one API method, such as "Create a Message"), or "api_sdk_resource" (a group of endpoints, such as Messages).
limitNoMaximum results to return (default: 10, max: 50)
queryYesSearch query: keywords. Double quotes mark an exact phrase, which a result must contain. Example: "extended thinking" budget
sdk_languageNoSearch this SDK's API reference together with the guides. Accepts an SDK language such as "python" or "typescript", or "http" (default — the language-neutral REST reference); unrecognized values fall back to "http". Results for endpoints then link to that SDK's reference pages and match its method names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Search query (keywords or phrase)"New value: +"Search query: keywords. Double quotes mark an exact phrase, which a result must contain. Example: \"extended thinking\" budget"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, closed-world, and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond that: results are ranked by relevance, snippets show context around matches, and quoted phrases are matched exactly with case ignored.

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 what is searched, then the query convention, then the return shape. No filler and no restatement of the tool title.

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

Completeness4/5

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

With no output schema, the description carries the burden of describing returns, and it does so adequately (matching pages and API endpoints, ranked, with snippets). It stops short of noting truncation or how the limit interacts with ranking, but nothing essential to invoking the tool correctly 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 the schema already documents all four parameters including the kind enum and sdk_language fallback. The description explains the double-quote exact-phrase convention, but that same convention is already stated in the query parameter, so it adds little; kind, limit, and sdk_language are not addressed at all.

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

Purpose4/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 ("Search Claude documentation") and scopes it explicitly to "the guides and the API reference together." That scope statement implicitly separates it from the get_doc/get_api_endpoint siblings, which retrieve a known item rather than match by keyword, though no sibling is named outright.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for keyword lookup across the docs, but the description never says when to prefer it over get_doc, get_api_endpoint, or get_navigation. No exclusions, prerequisites, or fallback behavior are stated.

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