Skip to main content
Glama

docs_search

Read-onlyIdempotent

Find files, folders and documents by name and by the words inside them. Words match the start of words; "exact phrase"; -word leaves out; type:pdf, title:word, is:starred, after:2026-01-31 work too. kind narrows to folder, pdf, document, spreadsheet, presentation, image, text. folder searches inside one folder. Each result has id, name, where it is, and the matching passage with its page, slide or sheet.

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": "docs_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
limitNo
queryYes
folderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds genuine behavioral context beyond that: what each result contains (id, name, location, matching passage with page/slide/sheet) and the matching semantics, which is what an agent needs to interpret hits. It omits anything about result volume or how limit is applied.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, then query grammar, then result shape – a sensible order with little filler. The formatting is slightly awkward (a mid-quote line break, dense operator list), but no sentence is wasted.

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?

With no output schema, the description compensates by describing the result fields and match passages. Combined with the full query grammar, an agent can invoke it correctly. The remaining gap is behavioral detail on limit/pagination and whether search defaults to the whole workspace.

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 description coverage is 0%, so the description must carry the burden, and it mostly does: query syntax (prefix matching, "exact phrase", -word exclusion, type:/title:/is:starred/after: operators), the kind vocabulary, and folder's meaning as a containment scope. The limit parameter (default 20) is never explained, leaving one of four parameters undocumented.

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?

States a concrete verb and resource set: find files, folders and documents by name and by the words inside them. That scope distinguishes it from chat_search and knowledge_search without naming them. It stops short of an explicit sibling comparison, so it is clear but not fully differentiated.

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?

Usage is implied rather than stated: the grammar (word-prefix matching, quoted phrases, negation, field operators) tells an agent this is the content/name search surface, and 'folder searches inside one folder' hints at scoping. There is no explicit when-to-use versus docs_list (browse) or docs_read (fetch a known document), and no when-not guidance.

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.