Skip to main content
Glama
mcp-server-paperless

mcp-server-paperless

Get document

get_document
Read-onlyIdempotent

Retrieves metadata for one Paperless document—names, dates, tags, custom fields, note count, and web URL—without returning its text; use the content tool to read the full text.

Instructions

Read one document: names, dates, tags, readable custom fields, notes count and web_url.

Never returns the document text; use get_document_content for it. Custom fields are rendered by type: select as its label, monetary as 'EUR 12.50', document links as the linked documents' id and title (title null if hidden). Sections in include that the user may not read in Paperless (notes and history need their own permissions, the audit log can be off) are listed in unavailable instead of failing.

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": {
      "document_id": "<document_id>"
    },
    "name": "get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeNoExtra sections: notes (their text), history (the newest 50 changes, no OCR text), metadata (file names, sizes, checksums), versions (file versions), suggestions (the classifier's correspondents, tags, types, paths, dates).
document_idYesDocument id, from search_documents.

Output Schema

NameRequiredDescriptionDefault
idYes
tagsYes
addedYes
notesNoOnly with include notes.
ownerYesNull: no owner, visible to every user.
titleYes
createdYes
historyNoOnly with include history.
web_urlYesLink to the document in the Paperless web UI.
modifiedYes
versionsNoOnly with include versions.
mime_typeYes
page_countYes
notes_countYes
suggestionsNoOnly with include suggestions.
unavailableNoIncluded sections the user may not read in Paperless.
storage_pathYes
correspondentYes
custom_fieldsYes
document_typeYes
file_metadataNoOnly with include metadata.
original_file_nameYes
archive_serial_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, closed-world), so the description adds the non-obvious behavior instead: the content exclusion, the type-specific rendering of custom fields (select label, 'EUR 12.50', hidden link titles returning null), and the permission-degradation contract where unreadable include sections land in 'unavailable' rather than failing. That degradation rule is exactly the kind of context annotations cannot express.

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 resource and its returned fields, then the content exclusion, then edge behavior – a sensible order with no filler sentences. The custom-field rendering detail is somewhat verbose given an output schema exists, and the final sentence is a long run-on, but nothing is truly redundant.

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?

For a two-parameter read tool with full schema coverage, full annotations, and an output schema, the description covers the remaining risk areas: what is not returned, how partial access degrades, and which sibling to use instead. Nothing an agent needs to call this correctly is missing.

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% and the include enum is already well documented per value, so the baseline is 3. The description still earns a step up by explaining the outcome of requesting a section the user cannot read (notes and history need their own permissions, audit log may be off) and that such sections are reported in 'unavailable', which is meaning the schema does not carry.

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?

"Read one document" is a specific verb plus resource, and the sentence immediately enumerates what comes back (names, dates, tags, readable custom fields, notes count, web_url). It also draws an explicit boundary against the sibling get_document_content, so an agent can distinguish the two 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 Guidelines5/5

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

The definition states both the when and the when-not: this tool for document metadata, get_document_content for the text, with "Never returns the document text" making the split unambiguous. It also explains the fallback path when sections are inaccessible, so the agent knows the call still succeeds rather than needing a retry.

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