Skip to main content
Glama

create_document_type

Create a new document type with an optional matching pattern and algorithm to automate document classification in Paperless-NGX.

Instructions

Create a new document type with optional matching pattern and algorithm for automatic document classification.

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_document_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
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. 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"
  2. 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, destructiveHint=false, openWorldHint=false and idempotentHint=false, so the agent knows this is a local, non-destructive write. The description adds context about what the match/algorithm fields are for (automatic classification), but says nothing about duplicate-name behavior, error modes, or that repeated calls create duplicates despite non-idempotence.

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?

One sentence with zero padding, and the core action is front-loaded before the optional-field detail. It could be slightly sharper by naming the return or effect, but nothing is wasted.

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 create tool with no output schema and a 3-parameter schema at 33% coverage, the description covers the purpose but omits the required-parameter fact, the match/algorithm relationship, and what a successful creation returns or how failures surface. Adequate, but with visible gaps.

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 33%: matching_algorithm is well documented in the schema, but name and match are bare. The description partially compensates by framing 'match' as a matching pattern tied to automatic classification, yet it never explains the syntax of that pattern or that its interpretation depends on the chosen matching_algorithm.

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 uses a specific verb and resource ('Create a new document type') and adds the meaningful qualifier that the matching pattern/algorithm drive automatic document classification. It is clearly distinguishable from get_document_type, update_document_type and delete_document_type by the verb alone, so no explicit sibling callout is needed.

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 when-to-use guidance: nothing says when a caller should create a document type versus a tag or correspondent, and no prerequisites (admin rights, uniqueness of name) are mentioned. The only usage signal is the implicit 'you want a new type' inference from the verb.

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