Skip to main content
Glama

search_docs

Search documentation snippets for a library. Filter by library ID and optional version to find relevant code examples.

Instructions

Search documentation snippets for a library. Filter by library via lib_id (base form like /hashicorp/terraform). Pass version alongside lib_id to pin to a specific version (e.g. v1.14); omit version to search across all indexed versions of the lib. version without lib_id is rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesthe search query
lib_idNobase library ID in /org/project format (optional)
versionNoversion tag to filter by (optional; requires lib_id)
tokensNomax tokens to return, min 1000, default 5000 (optional)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
snippetsYes
Behavior3/5

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

No annotations provided, so description bears full burden. Discloses lib_id format requirement and rejection of version without lib_id, but lacks details on result behavior (e.g., pagination, rate limits, return structure). Adequate but incomplete.

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?

Three succinct sentences, front-loaded with purpose, no filler. Each sentence adds essential information without redundancy.

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 output schema exists (not shown), description covers inputs and constraints adequately. Lacks explanation of tokens parameter effect on output, but overall sufficient for a search tool.

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?

Adds significant meaning beyond input schema: provides lib_id format example (/hashicorp/terraform), explains version pinning, notes tokens default 5000/min 1000, and clarifies dependency of version on lib_id. Schema coverage is 100% but description enriches understanding.

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?

Clearly states the tool searches documentation snippets for a library, using specific verb 'Search' and resource 'documentation snippets'. Differentiates from sibling 'search_libraries' by focusing on docs rather than libraries.

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?

Provides explicit guidance on when to use lib_id and version filters, and warns that 'version without lib_id is rejected'. Does not directly contrast with sibling tool but implications are clear.

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/laradji/deadzone'

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