Skip to main content
Glama

search_docs

Search language and API documentation by checking local docs first, then web results from official sites via DuckDuckGo.

Instructions

Language & API documentation search. Biases DuckDuckGo results to official docs sites (MDN, docs.python.org, pkg.go.dev, doc.rust-lang.org, etc.). Set fetch_top=true to retrieve the full markdown of the top hit instead of just the result list. LOCAL-FIRST: searches your docs/ folder first; only falls back to the web if no local match.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
saveNo
queryYesWhat to look up, e.g. `Array.prototype.map` or `asyncio.gather`.
targetNo
fetch_topNo
local_onlyNo
skip_localNo
Behavior4/5

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

No annotations are present, so the description carries the burden. It discloses the local-first search behavior, web fallback, bias toward official docs, and the effect of fetch_top=true. However, it does not mention potential side effects or explain the behavior of all parameters (e.g., save, target), which leaves some opacity.

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 concise, front-loaded with the core purpose, and includes only essential details (official docs, local-first, fetch_top). No filler or redundant statements.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters and no output schema, the description should explain return values and remaining parameters. It partially explains the difference between result list and markdown via fetch_top, but does not cover the behavior of local_only/skip_local/save or define the return structure sufficiently. Gaps remain for a complete understanding.

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 coverage is only 17%, so the description must compensate. It does add semantic clarity for fetch_top and implies meaning for local behavior, but it does not explicitly explain local_only, skip_local, save, or target. The addition of fetch_top semantics is helpful but incomplete for such low 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 it's a search tool for 'Language & API documentation' and differentiates itself from siblings by detailing a bias toward official docs and a local-first approach. The verb+resource is specific and unambiguous.

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 clear context on when the tool is appropriate (language/API documentation lookups) and describes the local-first behavior with web fallback. It does not explicitly list exclusions or alternatives, but the context is strong enough to guide selection.

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/Aleksandrr/web-docs-mcp'

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