Skip to main content
Glama

Search docs

search_docs
Read-only

Search documentation pages by keyword across an entire workspace or a specific space, with matched terms highlighted in content previews to help locate relevant pages.

Instructions

Full-text (keyword) search across the pages in a workspace, or in one of its spaces. Matches in the returned content_preview are delimited with << >> markers. For natural-language questions, prefer semantic_search.

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": {
      "workspace": "<workspace>",
      "query": "<query>"
    },
    "name": "search_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch terms
spaceNoOnly search this space of the workspace: space UUID or "workspaceSlug/spaceSlug" path. Leave out to search every space you can read.
workspaceYesWorkspace UUID or workspace slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • addedInput schema / properties / space
      Added value: +{
      +  "description": "Only search this space of the workspace: space UUID or \"workspaceSlug/spaceSlug\" path. Leave out to search every space you can read.",
      +  "type": "string"
      +}
  2. First observedv0.9.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety and scope are covered. The description adds genuinely non-obvious behavior: matches in content_preview are wrapped in << >> markers, which an agent needs in order to parse results. It doesn't mention pagination, result caps, or ranking, which keeps it below a 5.

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, each doing distinct work: what is searched, how to read the output, and which sibling to prefer instead. The routing hint is placed last so the core purpose is front-loaded.

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 3-parameter read-only search tool with no output schema, the definition covers scope, result encoding, and alternative routing, which is most of what an agent needs. The absence of any statement about result volume or ordering is the only meaningful gap, and that is minor for a search tool.

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 100%, so query, space, and workspace are all documented in the schema, including the space-slug path format and the leave-out-to-search-all behavior. The description adds no parameter-level meaning beyond what the schema provides; the << >> note concerns output, not inputs. Baseline 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 (full-text keyword search) and resource (pages in a workspace or space), and explicitly distinguishes itself from semantic_search by naming it for natural-language questions. An agent can tell it apart from list_pages or semantic_search without opening either schema.

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?

Explicitly routes natural-language questions to semantic_search, giving a clear alternative and the condition that selects it. It does not say when keyword search is the wrong choice beyond that (e.g., stemming/fuzzy matching limits), so it falls just 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.