Skip to main content
Glama
mcp-server-paperless

mcp-server-paperless

Update document

update_document
Idempotent

Update a Paperless document's title, correspondent, type, storage path, dates, owner, tags, or custom fields; only the fields you specify change.

Instructions

Change a document's title, correspondent, type, storage path, dates, owner, tags or custom fields.

Only what you name changes; everything else stays, also the other custom fields and tags. Names match like in search_documents; an unknown or ambiguous name is an error that lists candidates and nothing is changed. Tags are hierarchical in Paperless: a child tag always comes with its parent (implicit_tags lists parents added for you), and removing a parent while its children stay is refused. Document links are symmetrical: linking A to B also links B to A and needs change permission on B. Asking for what already holds changes nothing. It reads, then writes: a concurrent change of the same document's tags or custom fields in between is overwritten. Tags created with create_missing_tags are private to you; tag names that are only numbers cannot be addressed by name. Returns the document as get_document does, plus implicit_tags.

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

Input Schema

NameRequiredDescriptionDefault
clearNoFields to empty: correspondent, document_type, storage_path, archive_serial_number or owner (no owner makes the document visible to every user with the document permission).
ownerNoUsername or id of the new owning user.
titleNoNew title (at most 128 characters).
confirmNoRequired to change owner (also to no owner): the new owner takes the document over and you may lose access, which you cannot undo yourself.
createdNoNew creation date (YYYY-MM-DD).
tags_addNoTag names or ids to add; the others stay.
tags_setNoReplace all tags with exactly these (not with tags_add or tags_remove).
document_idYesDocument id, from search_documents.
tags_removeNoTag names or ids to take off; the others stay.
storage_pathNoName or id; see list_taxonomy.
correspondentNoName or id; see list_taxonomy.
custom_fieldsNoCustom field values to set, keyed by field name or id; other fields stay. Values by data type: string/longtext text; url with scheme; date 'YYYY-MM-DD'; boolean true/false; integer; float; monetary 'EUR12.50' (or 12.5); documentlink a list of document ids; select the option's label.
document_typeNoName or id; see list_taxonomy.
create_missing_tagsNoCreate tags in tags_add or tags_set that do not exist yet; they are private to you (their creator) until shared. Names of only digits are read as ids.
remove_custom_fieldsNoCustom field names or ids to take off the document.
archive_serial_numberNoNew archive serial number; it must be unused.

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.
implicit_tagsNoParent tags added because a child tag was added or kept: Paperless tags are hierarchical and a child needs its parent.
original_file_nameYes
archive_serial_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.2

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the read-then-write race (concurrent tag/custom-field changes are overwritten), hierarchical tag semantics (children pull parents, removing a parent with remaining children is refused), symmetric link permissions on the other document, and the irreversible owner-transfer hazard covered by confirm. Idempotence claim in annotations is consistent with 'asking for what already holds changes nothing'.

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 purpose, then the rules, then return shape; every sentence carries a distinct behavior. It is dense but justified for a 16-parameter mutation, with only mild redundancy around tags_add/tags_set.

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 16-parameter write tool it covers semantics, failure modes, permission requirements, and even the return contract ('returns the document as get_document does, plus implicit_tags'), which is the right level given an output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description still adds meaning the schema cannot: how names are resolved and what happens on ambiguity (error listing candidates, no change), tag hierarchy/implicit_tags, private tags from create_missing_tags, and that numeric-only tag names cannot be addressed by name.

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?

Opens with a specific verb and resource plus the exact set of mutable fields (title, correspondent, type, storage path, dates, owner, tags, custom fields), which is unambiguous against siblings like update_taxonomy_item or delete_document.

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?

Gives strong operational guidance: 'only what you name changes', name resolution behaves like search_documents, tags_set vs tags_add/tags_remove mutual exclusion is stated, and create_missing_tags has a described privacy consequence. It stops short of explicitly naming when to prefer a sibling (e.g., delete_document or update_taxonomy_item), so not a full 5.

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