Skip to main content
Glama

update_tag

Idempotent

Modify an existing Paperless-NGX tag’s name, color, matching pattern, or matching algorithm by ID.

Instructions

Update an existing tag's name, color, 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_tag"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
nameNo
colorNo
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. Changed3 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"
    • changedInput schema / properties / matching_algorithm / maximum
      Previous value: -4New value: +6
  3. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds that only the named fields are touched (implying a partial update), but it does not explicitly say unspecified fields are preserved, nor mention any permission requirements or response behavior.

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 well-formed sentence that front-loads the operation and lists the mutable fields with no filler. It could have used a few extra words to state partial-update semantics without becoming bloated.

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?

For a simple five-parameter mutation with annotations covering safety and no output schema, the definition is adequate but thin. It omits partial-update behavior, the id prerequisite, and the coupling between the match pattern and matching_algorithm, all of which matter for correct invocation.

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 coverage is only 20%, and only matching_algorithm carries an inline enum explanation; the description renames 'match' to 'matching pattern' and enumerates the updatable fields, which helps map intent to parameters. However, the required id parameter and the expected format of 'match' (e.g. regex when algorithm=4) are left undocumented.

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?

The description gives a specific verb and resource ('Update an existing tag') plus the exact set of mutable fields, so an agent can distinguish it from create_tag and delete_tag. It stops short of naming siblings such as bulk_edit_tags, but the operation is unambiguous.

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

Usage Guidelines2/5

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

There is no stated when-to-use guidance: nothing says when to prefer update_tag over bulk_edit_tags for multiple tags, or that the tag must already exist and be referenced by id. Usage is only implied by the verb 'Update'.

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