Skip to main content
Glama

create_tag

Create a new Paperless-NGX tag with optional color, match pattern, and matching algorithm to automate document tagging.

Instructions

Create a new tag with optional color, matching pattern, and matching algorithm for automatic document tagging.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
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. 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
  2. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a non-destructive, non-idempotent, closed-world creation operation, so the safety profile is covered. The description usefully adds that match/matching_algorithm drive automatic document tagging, but stays silent on name uniqueness, duplicate-name behavior, or whether the new tag is returned.

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?

A single front-loaded sentence with the verb and resource first and the optional fields trailing; every clause earns its place and nothing is redundant.

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 a mutation tool, the description should cover duplicate-name behavior and field formats, which it does not. It is adequate for the happy path but leaves an agent guessing about the most common failure mode (tag already exists).

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 25%, with just matching_algorithm documented in the schema, so the description carries real weight here — and it does map color, match, and matching_algorithm to their roles. However, it adds no format detail (hex color syntax, what a "matching pattern" looks like, which algorithm value to pick), leaving the low-coverage parameters under-explained.

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 states a specific verb and resource ("Create a new tag") and enumerates the optional fields, so the agent knows immediately what the tool produces. It distinguishes itself from update_tag/delete_tag by the word "new", though it never names those siblings.

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: the agent can infer this is for making a tag that does not yet exist rather than modifying one, and "for automatic document tagging" hints at the payoff of the matching fields. There is no explicit when-to-use/when-not or named alternative such as update_tag for existing tags.

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