Skip to main content
Glama

papercortex_export

Destructive

Exports selected Paperless receipts as DATEV batch files or inline CSV rows, using a local extraction cache and listing skipped receipts so accounting exports are easy to review.

Instructions

Export selected Paperless receipts, using a local extraction cache. DATEV requires configured accounting settings and writes batch files in the export directory, replacing matching filenames. Its text report lists paths and skipped receipts. CSV returns successful rows inline. Use papercortex_receipt to inspect a single receipt first.

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

Input Schema

NameRequiredDescriptionDefault
formatNoChoose datev for on-disk DATEV batches or csv for inline semicolon-separated text.datev
documentIdsYesOne or more Paperless IDs of receipt documents, such as IDs returned by papercortex_search.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / documentIds / description
      Previous value: -"Document IDs to export"New value: +"One or more Paperless IDs of receipt documents, such as IDs returned by papercortex_search."
    • addedInput schema / properties / documentIds / items / minimum
      Added value: +1
    • changedInput schema / properties / documentIds / items / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / documentIds / minItems
      Added value: +1
    • addedInput schema / properties / format / default
      Added value: +"datev"
    • changedInput schema / properties / format / description
      Previous value: -"Export format (default: datev)"New value: +"Choose datev for on-disk DATEV batches or csv for inline semicolon-separated text."
  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?

Goes well beyond the annotations by disclosing that DATEV requires configured accounting settings, writes batch files into the export directory, and replaces matching filenames — exactly the destructive behavior flagged by destructiveHint=true. It also explains the text report contents (paths plus skipped receipts) and that CSV returns only successful rows inline.

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?

Four dense sentences, all load-bearing, with the destructive overwrite warning placed early. Minor friction from the ambiguous pronoun in "Its text report" (referring back to DATEV) and the slightly jumbled ordering of format facts.

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

Completeness4/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 adequately covers what both formats produce and the prerequisite accounting configuration. Remaining gaps are modest — cache-miss behavior and error handling when settings are unconfigured are implied but not stated.

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 the enum and documentIds meanings are already documented. The description corroborates the format consequence (on-disk vs inline) but adds no syntax, ID-range, or batching nuance beyond the schema; baseline 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 ("Export selected Paperless receipts") and immediately scopes it with the local extraction cache and the two output modes. An agent can distinguish it from papercortex_search/receipt because those inspect or find receipts rather than emitting batch files.

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?

Gives clear routing guidance: datev for on-disk batches, csv for inline rows, and "Use papercortex_receipt to inspect a single receipt first" as a precondition for single-document inspection. It lacks an explicit when-not-to-use statement, so it stops short of full alternative coverage.

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