Skip to main content
Glama
MCP Docs Scraper
by kwiscion

Search Docs

search_docs

Search cached documentation with full-text queries to find relevant information before retrieving content. Returns ranked results with file paths and snippets for clear lookup.

Instructions

Full-text search within cached docs. FASTEST way to find information—use before get_docs_content. Returns ranked results with file paths and snippets.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "docs_id": "<docs_id>",
      "query": "<query>"
    },
    "name": "search_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default: 10, max: 50)
queryYesSearch query—natural language works well (e.g., 'validate email')
docs_idYesDocs ID from index_docs or list_cached_docs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that results are ranked and include file paths and snippets, which is useful return-shape context. It stops short of stating that it is a read-only, non-mutating operation, what happens on zero matches, or that results are bounded by the limit parameter's default. Adequate but not rich.

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 short sentences with zero filler; the speed claim and the ordering directive are front-loaded before the return description. Every sentence earns its place.

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 low-risk, three-parameter read search with a fully documented schema, the description covers purpose, ordering relative to a sibling, and the shape of results. No output schema exists, but the brief mention of ranked results with paths and snippets is sufficient for this complexity level.

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 description coverage is 100%, so all three parameters (docs_id, query, limit) are already fully documented in the schema. The description adds no extra syntax, query-language, or searching-behavior detail beyond what the schema provides, so the baseline of 3 applies.

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 ('Full-text search within cached docs') plus an explicit scope restriction to cached content, which separates it from get_docs_content on the path of fetching a known file. An agent can identify the tool's job from the first sentence alone.

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?

Gives a clear directive about ordering ('use before get_docs_content') and implies it is the preferred entry point for discovery. It doesn't state when not to use it, e.g. when the file path is already known or when browsing structure via get_docs_tree is more appropriate, so guidance stops short of full when/when-not coverage.

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