Skip to main content
Glama

docs_search

Read-onlyIdempotent

Search indexed APIs and offline docs by keywords to find functions, classes, or sections when you don't know exact names, then use the returned identifiers for lookups.

Instructions

Search installed APIs and docs by words (search docs, buscar función, cómo se hace, documentación)

Ranked full-text search over indexed APIs, offline docsets and markdown docs. Use it when you know roughly what you need but not the exact name ("read a csv", "retry on timeout"); then call api_lookup on the qualname you pick, or docs_read on a section id. Only searches what is already indexed.

Args: query: words or an identifier; camelCase/snake_case/dotted names match by parts. library: one library name, e.g. "pandas" or a docset name. ecosystem: "python", "js", "docset" or "markdown". kind: "module", "class", "function", "method", "attribute", "property" or "section". env: environment id or project path. limit: default 8, max 50.

Returns: {results: [{id, qualname, kind, library, signature, summary, score}], count, truncated, did_you_mean?}. Signatures and summaries are cut at 200 characters. Keywords: search docs, find function, how do I, which function, buscar documentacion, como se hace, que funcion, encontrar funcion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNo
kindNo
limitNo
queryYes
libraryNo
ecosystemNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavioral context beyond them: indexed-scope limitation, ranking, a did_you_mean fallback, and 200-character truncation of signatures/summaries. It stops short of explaining scoring or pagination semantics.

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?

Front-loaded with the core purpose and routing advice, then cleanly sectioned into Args/Returns. Loses a point for duplicating keyword lists in both the opening parenthetical and the trailing 'Keywords:' line, which is redundant padding.

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?

With six parameters, 0% schema coverage and no output schema, the description compensates fully by documenting every argument and the exact return shape ({results, count, truncated, did_you_mean}), plus scope limits and next-step tools.

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?

Schema description coverage is 0%, so the description carries the full burden and does: it explains each of the six parameters, including that camelCase/snake_case/dotted identifiers match by parts, gives concrete values for ecosystem and kind, and specifies limit defaults (8) and max (50).

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 ('Ranked full-text search over indexed APIs, offline docsets and markdown docs') and explicitly separates itself from siblings by naming api_lookup and docs_read as the follow-up steps once a result is chosen.

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?

Gives an explicit selection condition ('Use it when you know roughly what you need but not the exact name') with concrete examples, names the alternatives to use afterwards (api_lookup on qualname, docs_read on section id), and states the boundary 'Only searches what is already indexed.'

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