Skip to main content
Glama
mcp-server-paperless

mcp-server-paperless

Delete taxonomy item

delete_taxonomy_item
Destructive

Deletes a tag, correspondent, document type, storage path, or custom field after confirmation; documents stay but lose the association, and child tags may also be removed.

Instructions

Delete a tag, correspondent, document type, storage path or custom field for good.

There is no trash for these: the documents stay but lose the tag, correspondent, type, path or field value, and deleting a tag also deletes its child tags (Paperless 3.5 refuses the deletion if that would take child tags of other users). Without confirm it deletes nothing and fails with an error that says the effect (documents affected, child tags that go with it); describe that to the user and call again with confirm=true once they agree.

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

Input Schema

NameRequiredDescriptionDefault
itemYesName or id; see list_taxonomy.
kindYesWhat to work on; it decides which of the other settings apply.
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.

Output Schema

NameRequiredDescriptionDefault
idYes
kindYes
nameYes
messageYesWhat was deleted and what it did to the documents.
also_deletedNoTags: the child tags you can see that are deleted with it, with their document counts. On Paperless 3.4 child tags you cannot see (other users') are deleted too; 3.5 refuses the deletion instead.
document_countYesDocuments you can see that use it (not those of its child tags).

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?

Annotations already flag destructiveHint=true, but the description goes well beyond them: there is no trash, documents persist without the reference, tag deletion cascades to child tags, Paperless 3.5 refuses when other users' child tags would be affected, and confirm=false is a safe dry-run whose error enumerates the impact. These are exactly the non-obvious consequences an agent needs before authorizing a destructive call.

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 sentences, front-loaded with the destructive scope before the confirm protocol. The parenthetical about Paperless 3.5's refusal is dense but load-bearing for an agent deciding whether a call will succeed; nothing reads as 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?

For a destructive cascading mutation this covers the critical unknowns: irreversibility, what survives, collateral child-tag loss, and the confirm handshake. An output schema exists, so return-value description is correctly omitted, and the only parameters needing interpretation are handled.

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 the baseline is 3; the description earns above that by explaining confirm's real semantics (nothing is deleted, an effect-reporting error is returned) rather than restating 'Must be true to go ahead'. It also points item resolution at list_taxonomy, though kind's per-kind setting implications are left to the schema.

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 ('Delete') plus an enumerated resource set (tag, correspondent, document type, storage path, custom field) and adds the permanent-effect qualifier 'for good'. That precision separates it from create_taxonomy_item / update_taxonomy_item and from delete_document, which the description implicitly contrasts by noting documents survive the 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?

Gives an explicit two-step workflow: call without confirm first to get the effect summary, show it to the user, then re-call with confirm=true once they agree. It also names the exception (already-requested exact action in the schema text). What's missing is guidance on choosing between delete vs. update (e.g. to just retag documents) — no exclusion against alternatives is stated in the description itself.

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