Skip to main content
Glama

search_docs

Read-onlyIdempotent

Search API documentation by natural language query to find endpoints or concepts. Returns matching results with configurable limits and locale options.

Instructions

Search the API documentation for an endpoint or concept

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
limitNoMaximum number of results to return (default 5)
queryYesNatural language search query
localeNoLanguage to read the docs in, as a language tag such as `fr` or `pt-BR`. Optional: defaults to the docs' source language. list_endpoints names the languages these docs are published in.
projectIdNoProject to read. Optional: defaults to the project this server was started with. Only pass it to target a different project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.0
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Language to read the docs in, as a language tag such as `fr` or `pt-BR`. Optional: defaults to the docs' source language. list_endpoints names the languages these docs are published in.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv1.4.2
    • changedInput schema / properties / projectId / description
      Previous value: -"Project to read. Optional — defaults to the project this server was started with. Only pass it to target a different project."New value: +"Project to read. Optional: defaults to the project this server was started with. Only pass it to target a different project."
  3. First observedv1.1.1

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is fully covered elsewhere. The description adds no behavioral context beyond that: nothing about result ranking, whether matching is semantic or keyword-based, or how results relate to the other retrieval tools.

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

Conciseness3/5

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

A single front-loaded sentence with no wasted words, but its brevity comes at the cost of substance rather than from efficient compression. It is concise without being informative.

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

Completeness2/5

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

For a four-parameter search tool with no output schema, this leaves material gaps: what corpus is indexed, whether results include guides and SDK methods, and how results should be consumed. The normalized parameters are fine thanks to the schema, but an agent still cannot predict what a search will return or when another tool is better.

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 description coverage is 100%, so query, limit, locale, and projectId are all self-documented in the schema, giving a baseline of 3. The description contributes no additional parameter meaning, such as expected query phrasing or interaction between projectId and locale.

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?

States a specific verb ('Search') and resource ('the API documentation') with a qualifier on the target ('an endpoint or concept'). An agent can distinguish it from get_endpoint/list_endpoints at a high level, though it does not explicitly say whether docs include guides and SDK methods, which the sibling set implies could overlap.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no alternatives named. The description never says to prefer get_endpoint when the endpoint name is already known, or list_endpoints when browsing, even though those siblings make the choice non-obvious.

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