Skip to main content
Glama
mcp-server-paperless

mcp-server-paperless

Download document

download_document
Read-onlyIdempotent

Fetch a document's original file or archive PDF as an embedded resource without saving it to disk; files over the limit return a report with their web URL.

Instructions

Get the original file of a document, or its archive version, as an embedded resource.

The file comes attached as MCP content with its MIME type and file name (also in the JSON report before it), never written to disk. A file over the server's download limit (512 KiB unless the administrator changed it) is not attached: delivered is false and the report holds its web_url. Use get_document_content when you only need the text.

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

Input Schema

NameRequiredDescriptionDefault
kindNooriginal: the file as it was uploaded. archive: the searchable PDF/A Paperless made from it; not every document has one (text files do not).original
document_idYesDocument id, from search_documents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.2

TDQS

A4.3/5.0
Behavior3/5

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

Far beyond the annotations: the file is attached as MCP content with MIME type and file name, is never written to disk, and files over the server download limit (512 KiB default, admin-configurable) are not attached but returned as delivered=false with a web_url. The only shortfall is that a few practical details (pagination, whether delivered/report fields always appear, exact report shape) are left implicit, but with readOnly/idempotent/openWorld=false already declared, this is above the bar.

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 blocks: what it returns first, then delivery mechanics and the size-limit edge case, then the sibling routing hint. Every sentence carries operational information with no filler.

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 no output schema, the description takes on the return-value burden and does so fully: embedded resource with MIME type and file name, a preceding JSON report, and the delivered=false + web_url failure path. An agent can call this correctly and interpret both success and limit-exceeded outcomes without further documentation.

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 100% and the schema already documents both parameters, including the original vs archive enum and the 'not every document has one' caveat. The description mainly restates 'or its archive version' rather than adding syntax or format meaning beyond the schema, so the baseline 3 applies.

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?

The opening sentence names a specific verb (get/download) and resource (the original file or archive version of a document) and states the delivery form (embedded resource). It is clearly distinguishable from get_document_content (text) and thumbnail-style siblings.

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?

It explicitly routes the agent: use get_document_content when only text is needed, and the kind enum explanation says when the archive variant is appropriate. The size-limit fallback is also spelled out so the agent knows what happens when the primary path is unavailable.

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