Skip to main content
Glama
pvliesdonk
by pvliesdonk

get_document

Read-onlyIdempotent

Retrieve a document by its ID from Paperless. Optionally include the OCR content for full text access.

Instructions

Fetch one document by ID.

By default, the OCR content is stripped to keep responses small. Pass include_content=True for the full text, or call get_document_content to retrieve just the text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYes
include_contentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
tagsNo
addedNo
notesNo
ownerNo
titleYes
contentNo
createdYes
web_urlNo
modifiedNo
page_countNo
created_dateNo
storage_pathNo
correspondentNo
custom_fieldsNo
document_typeNo
user_can_changeNo
archived_file_nameNo
original_file_nameNo
archive_serial_numberNo
Behavior4/5

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

Annotations already include readOnlyHint, idempotentHint, etc. The description adds value by disclosing that OCR content is stripped by default and how to retrieve it, which is beyond the structured annotations. No contradictions.

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, no wasted words. The first sentence states the core purpose, the second explains key behavior and alternatives. Perfectly concise.

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?

Given the tool's simplicity (fetch by ID), with output schema present and annotations covering safety, the description is complete. It covers the main behavioral nuance (content stripping). No gaps for an agent to use correctly.

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 0%, so the description compensates by explaining that include_content controls OCR content inclusion and the default behavior. However, document_id lacks additional context beyond being an identifier.

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 description clearly states the tool fetches one document by ID, using specific verb 'fetch' and resource 'one document by ID'. It effectively distinguishes from sibling tools like get_document_content.

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?

Provides clear guidance on when to use this tool versus alternatives: for full text, either pass include_content=True or use get_document_content. It explains the default behavior implicitly guiding usage, though it lacks explicit when-not-to-use statements.

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/pvliesdonk/paperless-mcp'

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