Skip to main content
Glama

search_docs

Search documentation using semantic similarity. Pose natural language queries to find relevant docs, with optional filtering by doc slugs and source type.

Instructions

Search documentation using semantic similarity.

Args: query: Natural language search query (e.g. "how to make HTTP requests") top_k: Number of results to return (default: 10) min_score: Minimum vector-similarity score 0.0-1.0 (default: 0.3). Applies to the semantic/vector search leg only — keyword/BM25 matches (e.g. exact title matches for bare-word queries) can still surface in results even with low semantic similarity. slugs: Optional list of doc slugs to filter by (e.g. ['javascript', 'python']) source_type: Optional source type filter ('devdocs' or 'local')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
slugsNo
top_kNo
min_scoreNo
source_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description discloses important behavioral nuance, such as min_score applying only to the vector search leg and that keyword/BM25 matches may surface regardless, which provides context beyond the schema.

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 well-structured with a clear first sentence followed by a compact Args section; each item is informative and necessary.

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 five parameters and no annotations, the description thoroughly explains all inputs, includes examples, and notes edge-case behavior, making it sufficient given the output schema.

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?

Since schema description coverage is 0%, the description compensates by explaining each parameter's purpose, defaults, and allowed values (e.g., source_type 'devdocs' or 'local'), including caveats for min_score.

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 first sentence, 'Search documentation using semantic similarity,' clearly identifies the verb (search), resource (documentation), and method (semantic similarity), distinguishing it from sibling tools like list_docs or get_document.

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

Usage Guidelines3/5

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

The description implies usage for natural language queries but does not explicitly state when to prefer this over sibling tools like get_document or list_docs, nor does it provide exclusions or alternatives.

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/HellButcher/devdocs-mcp'

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