Skip to main content
Glama

docs_search

Search official Gemini API documentation by language, scope, and API, then read matching chunks in full using their chunk IDs.

Instructions

Search the official Gemini API docs (guides, API reference, SDK sources).

language: python, javascript, go, java or dotnet (python saves tokens). scope: guide, sdk, api-reference, type-reference, migration or deprecated. api: interactions (new) or generate-content (classic). limit: 1-50. Read a hit in full with docs_read(chunk_id).

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": "docs_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiNo
limitNo
queryYes
scopeNo
languageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the key workflow behavior: results are hits that require a follow-up docs_read call, plus the limit bounds (1-50) and that python 'saves tokens'. It does not describe ranking, what a hit contains, or whether scope/language filters are strict or advisory.

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

Conciseness4/5

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

Very compact and front-loaded: purpose first, then a one-line-per-parameter list, then the follow-up call. The telegraphic fragments are dense but each carries real information; a brief label for 'query' would have cost nothing.

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?

For a five-parameter search tool with no output schema and no annotations, the definition covers the enumeration values and the read-the-result workflow, which is what an agent needs to invoke it. Remaining gaps are default behavior for the optional filters and query syntax.

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 0%, so the description must compensate. It supplies accepted values for language, scope and api, and a limit range — genuinely useful since the schema declares these as unconstrained strings — but leaves the required 'query' parameter and default values for scope/api/language undocumented.

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 the official Gemini API docs') and scopes it to guides, API reference and SDK sources. The closing line 'Read a hit in full with docs_read(chunk_id)' cleanly separates this search tool from its read sibling.

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?

Gives practical routing guidance: use this to find hits, then call docs_read(chunk_id) to read one in full, and pick 'api' by whether you want the new interactions surface or classic generate-content. It stops short of explicit when-not-to-use conditions or guidance on choosing a scope value.

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