Skip to main content
Glama

search_documentation

Search project documentation and API references to understand code patterns, debug issues, and find implementation examples using technical terms like class or API names.

Instructions

Search codebase documentation and API references - use THROUGHOUT your work, not just at the start. Call whenever you encounter unfamiliar code patterns, before implementing any feature, when debugging issues, or when you need examples. Searches project patterns, architecture decisions, and API docs. Best results with technical terms (class names, API names), not natural language descriptions. Example: search "Widget" NOT "iOS 18 features". If your first search doesn't help, search again with different terms - the docs are there to help you continuously.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesTechnical search terms. Use API/class names, not descriptions. Good: "URLSession", "WidgetKit", "CoreData". Bad: "how to make network calls"
limitNoMaximum results per page. Default: 20
pageNoPage number for paginated results. Default: 1
docsetIdNoFilter results to specific documentation set
typeNoFilter API results by type: "Class", "Method", "Function", "Property", "Framework", "Protocol", "Enum"
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behavioral traits: it's a search operation (implying read-only, non-destructive), recommends best practices for queries (technical terms over natural language), and advises iterative searching. However, it doesn't explicitly mention rate limits, authentication needs, or error handling, leaving some gaps.

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?

The description is appropriately sized and front-loaded, starting with the core purpose and usage guidelines. Every sentence adds value: the first sets the scope, the second provides usage scenarios, the third clarifies search scope, the fourth offers query tips, and the fifth advises on iterative use. There's no wasted text, and it's structured for quick comprehension.

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?

Given the tool's complexity (5 parameters, no output schema, no annotations), the description is largely complete. It covers purpose, usage, behavioral aspects, and parameter guidance. However, it doesn't describe the return format or output structure, which is a gap since there's no output schema. For a search tool, this omission is notable but not critical, as the schema handles inputs well.

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 the schema already documents all parameters thoroughly. The description adds some value by emphasizing the importance of technical terms in the 'query' parameter and suggesting iterative use, but it doesn't provide additional semantic details beyond what the schema offers (e.g., default values or usage examples for 'docsetId' or 'type'). Baseline 3 is appropriate given high schema coverage.

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's purpose as searching codebase documentation and API references, specifying the scope (project patterns, architecture decisions, API docs) and distinguishing it from siblings like 'read_specific_document' or 'explore_api' by emphasizing broad search functionality. It uses specific verbs ('search') and resources ('documentation', 'API references').

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use the tool: 'THROUGHOUT your work, not just at the start', with specific scenarios like encountering unfamiliar code patterns, before implementing features, when debugging, or needing examples. It also advises on search strategies (e.g., 'If your first search doesn't help, search again with different terms'), offering clear usage context without exclusions.

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/afterxleep/doc-bot'

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