Skip to main content
Glama
mcp-server-paperless

mcp-server-paperless

Update taxonomy item

update_taxonomy_item
Idempotent

Change a tag, correspondent, document type, storage path, or custom field in Paperless-ngx. Update only the named settings; other taxonomy items and document values stay unchanged.

Instructions

Change a tag, correspondent, document type, storage path or custom field.

Only the settings you name change. The kind decides which settings apply. Select options are added, renamed or removed one by one and the others keep their ids, so documents keep their values; renaming an option changes its label for every document. The data type of a custom field cannot change (create a new field instead). A tag cannot become its own ancestor. Returns the object as stored, with the number of documents that use it.

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": {
      "kind": "<kind>",
      "item": "<item>"
    },
    "name": "update_taxonomy_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesName or id; see list_taxonomy.
kindYesWhat to work on; it decides which of the other settings apply.
nameNoNew name, 1 to 128 characters.
pathNoStorage paths: the folder template for stored files, e.g. '{{ created_year }}/{{ correspondent }}/{{ title }}'. Paperless refuses unknown variables.
matchNoTags, correspondents, document types, storage paths: the words, phrase or regular expression the matching algorithm uses.
colourNoTags: the colour as #rrggbb.
parentNoTags: name or id of the parent tag; see list_taxonomy.
confirmNoMust be true to go ahead. Without it nothing changes and the error says what would happen. Describe that to the user and pass true only once they agree, or if they already asked for exactly this.
clear_parentNoTags: make the tag a top-level tag (not with parent).
is_inbox_tagNoTags: whether documents with it count as inbox documents.
case_insensitiveNoTags, correspondents, document types, storage paths: ignore case.
matching_algorithmNoTags, correspondents, document types, storage paths: how Paperless assigns it to new documents by itself. none: never (the default when creating); any or all: any or all of the words in match; literal: the exact phrase; regex: a regular expression; fuzzy: similar words; auto: learned from your documents.
select_options_addNoSelect fields: labels of options to add.
select_options_removeNoSelect fields: labels (or ids) of options to remove; needs confirm.
select_options_renameNoSelect fields: option label (or id) to its new label.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYesThe name; the username for users.
pathNoStorage paths: the path template.
matchNoThe text or pattern the algorithm uses.
colourNoTags: the colour, e.g. #a6cee3.
parentNoTags: id of the parent tag.
data_typeNoCustom fields: the data type.
is_inbox_tagNoTags: documents with it count as the inbox.
document_countYesDocuments the user may see that use it; null for views, users, groups.
select_optionsNoCustom fields of type select: the options, ids and labels.
case_insensitiveNoWhether matching ignores case.
matching_algorithmNoHow Paperless assigns it to new documents by itself; none: never.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.2

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnly false, idempotent true, destructive false), the description discloses the confirm gate — without it nothing changes and the error describes the pending effect — plus the cross-document consequence of renaming an option and the id-stability guarantee that preserves document values. It also explains the return payload (stored object plus usage count). This is exactly the kind of behavior structured fields cannot convey.

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 verb and resource set, then the constraints, with no filler sentences. The closing line about the return value is partially redundant given an output schema exists, which keeps it from a perfect score, but overall density is high.

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 15-parameter polymorphic mutation, the description covers the risky parts: confirm gating, kind-dependent applicability, option-id preservation, and the immutability constraint. The per-kind matrix of which optional parameters apply is left to the schema (which has full coverage), so nothing critical for a correct call 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%, so baseline is 3, and the description still earns above that: it explains that `kind` gates which other settings apply, that select options are manipulated one at a time with ids retained, and it states the invariant that a tag cannot become its own ancestor. It adds the *why* rather than restating field descriptions.

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?

"Change a tag, correspondent, document type, storage path or custom field" gives a specific verb plus the exact resource set, and the enumeration matches both the `kind` enum and the sibling pair create_taxonomy_item/delete_taxonomy_item. An agent can tell immediately this is the modify path, not creation or deletion.

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?

It states the key selection rule ("Only the settings you name change. The kind decides which settings apply") and names an explicit alternative for the unsupported case ("The data type of a custom field cannot change (create a new field instead)"). The confirm workflow is spelled out as a prerequisite with instructions on when to pass true. It stops short of a full when-to-use-this-vs-siblings statement, but the coverage is well above typical.

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