Skip to main content
Glama
luca-network

SPR (Sealed Payment Record)

Official

export_dispute_pack

Exports a sealed evidence pack for a merchant answering a chargeback, bundling payment record versions, buyer intent, authentication, delivery, and a verifiable manifest with summary.

Instructions

For a merchant answering a chargeback or a payment dispute: writes one payment's evidence into a new folder under /tmp/spr-books/exports. The folder holds every version of the payment's record, the buyer's own sealed intent and key (if the buyer's agent declared the purchase), how the buyer authenticated, the order and processor references, the delivery you give, a sealed statement of all of it and the same statement in plain words (summary.txt), under a sealed manifest anyone can check with spr-verify. Give the record_id and a short folder name, not a path. Returns the folder, the files, the result of checking it, and the summary. The evidence supports a dispute response; whether to submit it is the merchant's decision, and the outcome is the card network's.

Input Schema

NameRequiredDescriptionDefault
nameYesA folder name: letters, digits, dot, dash or underscore, such as dispute-ORD-1042
deliveryNoOptional: how and when the order was delivered
overwriteNoReplace an earlier export of that name
record_idYesThe payment's record_id, as list_records shows it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=false; the description corroborates the write behavior by saying it creates a new folder, and adds real context: the folder path, the file inventory, that a plain-text summary and a verifiable manifest are produced, and that the record is sealed. It does not discuss what happens on name collision beyond the schema's overwrite flag, and doesn't warn that non-idempotent repeat calls create new folders.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and purposeful, but the long inventory sentence ('the buyer's own sealed intent and key..., how the buyer authenticated, the order and processor references, the delivery you give, a sealed statement...') is dense and hard to scan, and the closing sentence about whose decision submission is takes space without guiding invocation.

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?

For a 4-parameter write tool with nested delivery object, no output schema and 100% schema coverage, the description covers return contents (folder, files, check result, summary) and the verification path via spr-verify. It leaves the overwrite/collision behavior and the delivery object's role only lightly touched, so it is close to but not fully complete.

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 description coverage is 100%, so the schema already carries parameter meaning. The description adds the important constraint that name is a folder name, not a path, and that record_id is the payment's identifier as list_records shows it, but it does not explain the optional delivery or overwrite parameters.

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 (writes one payment's evidence into a new folder) with a precise resource and scope, plus an enumerated contents list. It is clearly distinguished from siblings like export_package and export_xbrl_csv by its dispute-evidence scope, and it names the target audience (a merchant answering a chargeback).

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 implies when to use it (answering a chargeback or payment dispute) but never explicitly contrasts it with export_package or export_xbrl_csv, nor states prerequisites such as needing a record_id from list_records beyond the schema hint. It also usefully bounds the tool's role by saying submission is the merchant's decision, but no explicit when-not-to-use rule is given.

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