Skip to main content
Glama
philschmid

Gemini Docs MCP Server

by philschmid

search_documentation

Search Gemini API documentation using short keyword queries. Retrieve full documentation pages for specific features or capabilities.

Instructions

Performs a standard keyword search on Gemini API documentation. CRITICAL: This is a naive keyword search, NOT semantic. Long queries will FAIL. You MUST use VERY SHORT keyword based queries (max 1-3 keywords) focusing only on the most unique terms. Break complex questions into separate, simple queries. It will return the full documentation page for a capability or feature.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queriesYesList of up to 3 SHORT keyword queries. Keep each query under 3 words. BAD: 'google genai python generate image save bytes' (too specific, will fail). GOOD: ['function calling', 'imagen parameters', 'save bytes'] (broad, likely to hit).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must fully disclose behavior. It reveals that the search is naive keyword-based, that long queries fail, and that it returns full documentation pages. However, it does not mention response format, pagination, or what happens if no results are found, which are gaps for a retrieval tool.

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?

The description is front-loaded with the purpose and follows with critical usage warnings in capitals. It could be slightly more concise, but every sentence adds value and the structure aids readability.

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?

Given the presence of an output schema, the description does not need to detail return values. It covers purpose, usage guidelines, and key behavioral traits. The tool is simple (1 parameter), and the description is sufficient for an agent to use it correctly.

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

Parameters5/5

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

The input schema already provides a detailed description for the 'queries' parameter, but the description adds critical context: limit to 1-3 keywords, focus on unique terms, break complex questions. This goes well beyond the schema, teaching effective usage.

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 clearly states the tool performs a standard keyword search on Gemini API documentation, distinguishing it from siblings like get_capability_page (returns a specific page) and get_current_model (model info). The verb 'search' and resource 'documentation' are specific, and the mention of 'keyword search' differentiates it from semantic 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?

The description provides explicit guidance: use short keyword queries (1-3 words), avoid long queries, break complex questions into separate simple queries. It does not explicitly state when not to use this tool versus alternatives, but the context implies it's for keyword-based documentation lookup, not for retrieving specific pages or model details.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/philschmid/gemini-api-docs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server