Skip to main content
Glama

papercortex_receipt

Read-only

Extract vendor, date, currency, totals, tax, and line items from a Paperless receipt or invoice by document ID, returning a labeled report with model confidence for review.

Instructions

Read one receipt or invoice by Paperless document ID. Ollama extracts vendor, date, currency, totals, tax and line items into a labeled text report with model confidence. Missing totals default to 0 and missing currencies to EUR. Check these values against the original. Uses OCR text or a configured vision model and reports an error if extraction fails. Use papercortex_search to find an ID and papercortex_export to produce accounting files.

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

Input Schema

NameRequiredDescriptionDefault
documentIdYesPositive ID of an existing receipt or invoice readable by the configured Paperless API token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / documentId / description
      Previous value: -"Paperless-ngx document ID of the receipt"New value: +"Positive ID of an existing receipt or invoice readable by the configured Paperless API token."
    • 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.4/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses the extraction engine (Ollama, or a configured vision model over OCR text), the defaulting rules (missing totals become 0, missing currencies become EUR), the inclusion of model confidence, and that extraction failure returns an error. The warning to verify values against the original is genuinely useful caution an agent cannot get from annotations.

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?

Purpose is front-loaded and the five sentences each carry information: extraction behavior, defaults, verification, model fallback, and sibling routing. Slightly dense with multiple ideas per sentence, but no filler.

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?

There is no output schema, so the description's account of the returned labeled text report with confidence scores fills the return-value gap. Combined with the defaulting rules and error behavior, an agent has enough to call this correctly and interpret results.

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?

With a single parameter at 100% schema description coverage, the schema already explains that documentId must be a positive ID readable by the Paperless token. The description reinforces the 'existing receipt or invoice' constraint but adds no new syntax or format detail beyond it.

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?

The description opens with a specific verb, resource, and cardinality: "Read one receipt or invoice by Paperless document ID." An agent immediately knows this is a single-document read keyed on a Paperless ID, distinct from the search/export siblings it names.

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

Usage Guidelines4/5

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

It gives concrete routing: use papercortex_search to find an ID first, and papercortex_export for accounting files. That covers prerequisites and the main alternative, but it does not state when this tool should be avoided or how it differs from papercortex_classify/papercortex_query.

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