Skip to main content
Glama

search_documentation

Find specific patterns, examples, and usage details in project documentation and API references by entering technical search terms. Filter results by docset or type.

Instructions

Search project documentation and installed API references for patterns, examples, and usage details. Use early and often to stay aligned with current docs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesTechnical search terms. Examples: "URLSession", "WidgetKit", "CoreData"
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"
Behavior3/5

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

No annotations are provided, so the description alone must convey behavior. It mentions searching for 'patterns, examples, and usage details' but does not describe pagination, search precision, or what happens with no results. The parameter schema covers some behavioral aspects, but the description adds limited insight beyond that.

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 consists of two concise sentences. The first explains the core functionality, and the second provides actionable guidance. No redundant information is present.

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 search tool with five parameters and no output schema, the description covers the main purpose and usage advice. However, it lacks details on return format and how it integrates with siblings like 'explore_api'. The description is adequate but not fully comprehensive.

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?

All five parameters have descriptions in the input schema (100% coverage). The tool description does not add any additional meaning or examples for the parameters beyond what the schema already provides.

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 searches project documentation and API references for patterns, examples, and usage details. It uses a specific verb ('search') and resource ('documentation'), and distinguishes itself from siblings like 'explore_api' and 'get_document_index' by focusing on targeted 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 advises to 'use early and often to stay aligned with current docs,' providing a clear usage context. However, it does not explicitly mention when not to use this tool or direct users to alternatives like 'explore_api' for browsing.

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