Skip to main content
Glama

Search documents

search_documents
Read-onlyIdempotent

Find documents by searching titles, subtitles, summaries, owners, and collections for a text query. Use it to locate docs about a topic or owner.

Instructions

Substring search across title, subtitle, summary, owner and collection. Use for 'find docs about X'.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesSearch text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent and closed-world, and the description adds the meaningful extra that matching is literal substring rather than fuzzy or semantic, plus which fields are covered. It stops short of disclosing case sensitivity, result ordering, or how the limit interacts with the candidate set.

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?

Two short sentences, zero filler, with the field-scope constraint front-loaded before the use-case cue. Nothing in the text is redundant with the title or schema.

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?

For a simple two-parameter read tool with annotations and no output schema, the definition covers what is searched and roughly when to use it. The gaps are the meaning of limit and what the results look like (which fields returned, ordering), which matter for calling it correctly against potentially many matches.

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 50%: query has "Search text." while limit has no description at all. The description compensates by clarifying that query is matched as a substring against specific fields, but it says nothing about what limit controls (cap on returned hits? ordering before truncation?), so the undocumented parameter stays unexplained.

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?

"Substring search across title, subtitle, summary, owner and collection" names a specific operation and enumerates the searched fields, which is far more than a restatement of the name. It does not explicitly contrast with siblings like list_documents or get_document, but the verb and field scope make the distinction inferable.

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?

"Use for 'find docs about X'" supplies one positive usage cue, so the agent knows the intended discovery scenario. There are no exclusions, no named alternatives (e.g., browse via list_documents, fetch by id via get_document), and no statement about when a substring search is the wrong choice.

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