Skip to main content
Glama

update_document_type

Idempotent

Update an existing document type's name, matching pattern, or matching algorithm in Paperless-NGX to adjust how documents are classified.

Instructions

Update an existing document type's name, matching pattern, or matching algorithm.

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": {
      "id": "<id>"
    },
    "name": "update_document_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
nameNo
matchNo
matching_algorithmNoMatching algorithm: 0=None, 1=Any word, 2=All words, 3=Exact match, 4=Regular expression, 5=Fuzzy word, 6=Automatic

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.1
    • changedInput schema / required
      Previous value: -[
      -  "id",
      -  "name"
      -]New value: +[
      +  "id"
      +]
  2. Changed6 schema fields changedv2.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / matching_algorithm / description
      Added value: +"Matching algorithm: 0=None, 1=Any word, 2=All words, 3=Exact match, 4=Regular expression, 5=Fuzzy word, 6=Automatic"
    • removedInput schema / properties / matching_algorithm / enum
      Removed value: -[
      -  "any",
      -  "all",
      -  "exact",
      -  "regular expression",
      -  "fuzzy"
      -]
    • addedInput schema / properties / matching_algorithm / maximum
      Added value: +6
    • addedInput schema / properties / matching_algorithm / minimum
      Added value: +0
    • changedInput schema / properties / matching_algorithm / type
      Previous value: -"string"New value: +"integer"
  3. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, and closed-world, so the safety profile is covered. The description adds no behavior beyond that field list: it does not say whether unspecified fields are left unchanged (partial vs full replacement), what happens when the id does not exist, or whether match is validated against matching_algorithm. For a mutation tool whose key ambiguity is partial-update semantics, that is a real gap.

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?

A single front-loaded sentence naming the verb, resource, and mutable fields with no filler. Nothing is redundant, though it is arguably too terse for a mutation tool with a 25%-documented schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and rich annotations, the description need not explain return values or safety. However, for a four-parameter mutation tool it should say whether omitted fields are preserved and what the required id refers to; those omissions leave an agent guessing about core invocation semantics.

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 only 25%, with just matching_algorithm documented in the schema and id, name, and match bare. The description partially compensates by mapping its three named fields onto name, match, and matching_algorithm, but it never explains that id is the required target identifier or what format 'matching pattern' takes, so the gap is narrowed rather than closed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Update') plus the resource ('an existing document type's') and enumerates the mutable fields (name, matching pattern, matching algorithm). This clearly separates it from create_document_type, delete_document_type, and get_document_type in the sibling list, though the description never names a sibling explicitly.

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

Usage Guidelines3/5

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

Usage is only implied by the word 'existing' and the 'update_' prefix; there is no explicit when-to-use or when-not-to-use guidance. Notably it gives no route to bulk_edit_document_types or to the other update_* tools, so the agent must infer the choice from tool names alone.

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