Skip to main content
Glama
luca-network

SPR (Sealed Payment Record)

Official

export_xbrl_csv

Writes a book's payments as xBRL-CSV for accounting and reporting systems: mpp-report.json metadata plus mpp-payments.csv with one row per payment and its intent.

Instructions

Writes the book's payments as xBRL-CSV for accounting and reporting systems: one row per payment, in the concepts of the draft Machine Payment Profile for XBRL GL, with the intent each was paid under. The files are mpp-report.json (the metadata) and mpp-payments.csv, in a new folder under /tmp/spr-books/exports. Give a short folder name, not a path. Returns the folder, the file names and the number of rows. If the folder already holds an export it fails, unless overwrite is true. To give an auditor or a counterparty a sealed copy they can check, use export_package instead.

Input Schema

NameRequiredDescriptionDefault
nameYesA folder name: letters, digits, dot, dash or underscore, such as xbrl-2026-10
overwriteNoReplace an earlier export of that name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: states the write target (/tmp/spr-books/exports), that a new folder is created, that a name collision causes failure unless overwrite is true, and what the response contains (folder, file names, row count). Annotations already cover the readOnly/idempotent profile, and the description adds the operational details an agent needs.

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?

Front-loaded with purpose and output, then the failure/overwrite rule, then the sibling routing. Dense but every sentence carries information; slightly long, though nothing is wasted.

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?

No output schema exists, but the description enumerates the return values (folder, file names, row count), and covers naming rules, collision handling, and the alternative tool. Nothing an agent needs to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds a real constraint not in the schema — give a short folder name, not a path — and explains the overwrite condition (replace an earlier export of that name) in context. That is meaningful added value over the schema text.

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: writes the book's payments as xBRL-CSV, names the exact output files (mpp-report.json, mpp-payments.csv) and the profile followed. Clearly distinguishable from export_package, which is named as the alternative for sealed copies.

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

Usage Guidelines5/5

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

Gives explicit routing: use export_package instead when the goal is a sealed copy for an auditor or counterparty. Also states the precondition/behavioral rule for reuse of a folder name (fails unless overwrite is true), so the agent knows when to set that flag.

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