Skip to main content
Glama

papercortex_classify

Read-only

Suggest review-only metadata for a Paperless-ngx document using its OCR text and Ollama, returning tags, type, correspondent, language, summary, and confidence without changing the document.

Instructions

Suggest metadata for one existing Paperless document using its OCR text and Ollama. Returns a text report with suggested tags, type, correspondent, language, summary and confidence. The suggestions are for review. The tool leaves the document and its tags unchanged, including when applyTags is true.

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

Input Schema

NameRequiredDescriptionDefault
applyTagsNoLegacy flag accepted for compatibility. Tag writing is unimplemented. Omit this flag for suggestions.
documentIdYesPositive Paperless document ID, available from papercortex_search. The document must have OCR text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / applyTags / default
      Added value: +false
    • changedInput schema / properties / applyTags / description
      Previous value: -"Automatically apply suggested tags (default: false)"New value: +"Legacy flag accepted for compatibility. Tag writing is unimplemented. Omit this flag for suggestions."
    • changedInput schema / properties / documentId / description
      Previous value: -"Paperless-ngx document ID"New value: +"Positive Paperless document ID, available from papercortex_search. The document must have OCR text."
    • addedInput schema / properties / documentId / minimum
      Added value: +1
    • changedInput schema / properties / documentId / type
      Previous value: -"number"New value: +"integer"
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint, yet the description adds the critical behavioral fact an agent would otherwise get wrong: the tool never mutates the document or its tags, even when applyTags is true. It also discloses the return shape (a text report) in the absence of an output schema.

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?

Three short sentences, front-loaded with what the tool does, then the return value, then the non-mutation guarantee. No filler, and the most consequential caveat is placed last for emphasis without bloating length.

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

Completeness5/5

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

With no output schema, the description carries the burden of describing return values and does so field by field (tags, type, correspondent, language, summary, confidence). Combined with the OCR-text prerequisite and the explicit no-write guarantee, an agent has everything needed to call it correctly.

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 100%, so both parameters are already documented, including applyTags as a legacy no-op flag. The description reinforces the applyTags trap ('including when applyTags is true') but adds little semantic detail beyond what the schema states, so the baseline of 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('Suggest metadata for one existing Paperless document') plus the mechanism (OCR text and Ollama) and the single-document scope. An agent can distinguish this from search/query/export siblings without opening the schema.

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?

The description frames the output as 'suggestions ... for review,' which implies a human-in-the-loop, advisory use case, and the schema notes the document must have OCR text. However, it never explicitly says when to pick this over papercortex_search or papercortex_receipt, nor any when-not conditions.

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