Skip to main content
Glama

search_documents

Read-onlyIdempotent

Search Paperless-NGX documents by full-text query. Deprecated compatibility wrapper: use query_documents for new integrations and get_document_content to retrieve content.

Instructions

Deprecated compatibility wrapper for full-text document search. Use 'query_documents' with the 'query' argument for new integrations. Note: Document content is excluded from results by default. Use 'get_document_content' to retrieve content when needed.

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
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior not in the annotations: results exclude document content by default, which directly shapes how an agent interprets the response. It does not mention pagination or result limits, keeping it just short of 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, front-loaded with the deprecation notice before any capability detail. Every sentence carries decision-relevant information — status, substitute, and result-content caveat — with no filler.

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 one-parameter, no-output-schema tool, the description covers deprecation status, the replacement path, and the notable return-value caveat (content excluded). Only the query format/syntax for the single parameter is missing, a minor gap given how simple the tool is.

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?

There is one parameter, 'query', and schema description coverage is 0%, so the schema contributes nothing. The description only implies the parameter's meaning via 'full-text document search' and never states accepted query syntax or matching semantics. It partially compensates but leaves the sole parameter underspecified, so a mid-range score is appropriate rather than the 0-param baseline of 4.

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 document search') and immediately discloses that it is a deprecated compatibility wrapper, which is the single most important fact about this tool. An agent can distinguish it from query_documents (the successor) and get_document_content (the content fetcher) without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use 'query_documents' with the 'query' argument for new integrations, and use 'get_document_content' when actual document content is needed. This covers both the when-to-use-this and the when-to-use-something-else cases, including the most likely agent mistake (expecting content in results).

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