Skip to main content
Glama

get_document_type

Read-onlyIdempotent

Fetch a document type by ID to inspect its full details and matching rules in Paperless-NGX.

Instructions

Get a specific document type by ID with full details including matching rules.

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

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
  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=true, idempotentHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is fully covered by structured fields. The description's contribution is noting that the response includes "full details including matching rules," which is useful return-shape context given there is no output schema. It says nothing about error behavior for unknown IDs, which limits how much it adds.

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 with no filler or redundancy. There is no wasted wording, though the brevity is also the source of the definition's remaining gaps.

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 single-parameter read tool with full annotations, this is close to sufficient — the agent knows it needs an ID and that matching rules come back. Missing are the source of valid IDs and the failure mode for unknown IDs, which the schema does not cover either.

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?

There is one parameter (id) with 0% schema description coverage, so the schema provides no meaning on its own. The description partially compensates by indicating the ID identifies a document type, but it gives no format, type, or source hints (e.g., where to obtain such an ID). Adequate but thin for a parameter the schema leaves fully 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?

"Get a specific document type by ID" gives a specific verb and resource, and the singular "by ID" cleanly separates it from the sibling list_document_types. The added clause about matching rules tells the agent what the payload contains. It doesn't explicitly contrast with update_document_type or delete_document_type, but the verb does that work adequately.

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?

The only usage signal is the implicit "by ID" — the agent can infer this is for when a document type ID is already known. There is no statement of when to prefer list_document_types for lookup, no mention of what happens if the ID is invalid, and no prerequisites. Guidance is essentially absent.

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