Skip to main content
Glama

Huddle

search_docs

Read-onlyIdempotent

Search document titles, and revisions by author or number, ignoring case. Use it when you know part of a title, or want every revision one author published. Returns matching documents and then matching revisions, up to 20 of each per page, plus next_cursor.

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

Input Schema

NameRequiredDescriptionDefault
qYespart of a title, an author's name, or a revision number such as #2
cursorNonext_cursor from the previous page; leave out for the first page

Output Schema

NameRequiredDescriptionDefault
docsYes
queryYesThe words as matched: trimmed, in lower case, at most 100 characters.
has_moreYesWhether another page follows.
revisionsYes
truncatedYesWhether the workspace was too large to search in full.
total_docsYesHow many documents the workspace holds.
next_cursorYesPass as cursor to read the next page; null on the last one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the readOnlyHint/idempotentHint annotations, it discloses case-insensitive matching, result ordering (documents first, then revisions), a per-entity page cap of 20, and the next_cursor paging contract. That is meaningful behavioral context the annotations cannot convey. It stops short of rate limits or tie-breaking/sort rules, so it is not exhaustive.

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, zero filler: purpose and match modes first, then usage conditions, then return shape and pagination. Nothing could be removed without losing information.

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 an output schema present and safety covered by annotations, the description only needs to supply selection guidance and behavioral texture, both of which it does, including page size and cursor handling. An agent can call this correctly without reading further.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds value by stating the match is case-insensitive and by reinforcing that q spans three input modes (title fragment, author, or revision number). It does not clarify how multiple query modes are disambiguated or whether matching is substring vs prefix.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource set: searching document titles and revisions, matched by author or number, case-insensitively. It is clear about what it does and is distinguishable from get_doc or list_docs by its partial-match framing, but it never names a sibling alternative explicitly.

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?

It gives two concrete triggering conditions ('when you know part of a title', 'want every revision one author published'), which is solid when-to-use guidance. It does not say when NOT to use it, nor does it point at a sibling for browsing or fetching a known document.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources