Skip to main content
Glama

Get document

paperless_get_document
Read-only

Retrieve a single document's metadata, extracted text, notes, and custom fields by ID to read its full contents after searching.

Instructions

Fetch one document by id: metadata with names resolved, plus its extracted text, notes and custom field values. Use this after paperless_search_documents to read a document’s contents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesDocument id.
versionNoResolve content against a specific document version id.
include_contentNoInclude the extracted text.
include_metadataNoAlso fetch file-level metadata (media filename, checksum, size, PDF fields).
content_max_charsNoTruncate the extracted text at this many characters.
Behavior4/5

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

Annotations already mark this as read-only. The description adds useful behavioral detail: metadata names are resolved, and the response includes extracted text, notes, and custom field values. No contradictions with the readOnlyHint annotation.

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 sentences, front-loaded with the core action and payload, with no filler. Every clause contributes either scope or usage guidance.

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 single-document read tool with a fully documented schema and read-only annotations, the description covers the main behavior and even notes the natural predecessor tool. It does not explicitly contrast with downloading the file, but the listed return contents make the distinction inferable.

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 description coverage is 100%, including defaults and limits for include_content, include_metadata, and content_max_chars. The description adds no extra parameter semantics beyond that, matching the baseline for fully documented schemas.

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 ('Fetch one document by id') and enumerates what is returned: metadata with resolved names, extracted text, notes, and custom field values. This clearly distinguishes it from sibling search and download tools.

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

Usage Guidelines4/5

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

Explicitly says to use this after `paperless_search_documents` for reading a document's contents. It does not mention the alternative `paperless_download_document`, but the intended context is clear enough for an agent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/patrickcylai/paperless-ngx-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server