Skip to main content
Glama

Audit Creditor File

audit_creditor_file

Audit a creditor or supplier payment file (CSV/XLSX) row by row before sending payments: validates IBAN, BIC, bank codes, duplicates and SEPA reachability, and returns a free preview.

Instructions

Audit an entire creditor/supplier payment file (CSV or XLSX) row by row: IBAN structure and checksum, bank code against the national register, bank name and BIC, SEPA reachability and issuer type — plus checks a single IBAN call cannot make because they need the whole file: duplicate IBANs, the BIC the file carries against the BIC the register derives, address country against IBAN country, and Swiss structured-address conformity under the SPS 2026 rules in force from 14 November 2026. USE WHEN: the user has a spreadsheet or export of creditor/supplier bank accounts (accounts-payable file, vendor master, payment batch) and wants it checked before sending payments, or asks to "audit my creditor file" / "check this supplier list" / "validate this payment batch". HOW: base64-encode the file bytes and pass them as file_base64, with the original filename (its extension decides CSV vs XLSX parsing). LIMITS: rejects files decoding to more than 5 MB — checked locally, before any network call, because a larger base64 payload breaks the stdio channel; the HTTP route itself accepts up to 10 MB — and sheets over 20,000 rows, which the route rejects (400 too_many_rows). RETURNS a FREE PREVIEW ONLY, never the full report: job (the id to reuse with audit_status), rows, paid (always false from this call), price / currency naming what the full report costs, summary (counts by status and finding code, countries seen, columns detected), and preview (the first flagged rows then the first OK ones, up to 20, IBANs masked like "CH10 **** 2346"). The annotated .xlsx report is a PAID deliverable — $149 up to 5,000 rows, $349 up to 20,000 — settled through a one-off Stripe Checkout Session. This tool NEVER pays automatically: pass checkout: true to also receive a Checkout URL for a HUMAN to open, then poll audit_status with the same job id to learn when it is paid and get the download link. COST: free. Only the full report is paid, and only once a human completes the Stripe checkout.

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": {
      "file_base64": "<file_base64>",
      "filename": "<filename>"
    },
    "name": "audit_creditor_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage for the summary labels and, later, the annotated report. Defaults to "en".
checkoutNoWhen true, immediately create a Stripe Checkout Session after the upload and return its URL for a human to open and pay. Defaults to false. Never pays anything by itself.
filenameYesOriginal filename with its extension, e.g. "creditors.csv" or "suppliers.xlsx". The extension decides how the file is parsed.
file_base64YesThe CSV or XLSX file content, base64-encoded — the raw payload only, no "data:" URL prefix.

Output Schema

NameRequiredDescriptionDefault
jobYesJob id — pass to audit_status to poll payment and get the download link.
langNo
paidYesAlways false from this tool — nothing has been paid yet.
rowsYes
tierNo
_noteNoPlain-language reminder that this is a free preview and how to get the paid report.
priceNoPrice of the full report, in the currency given by `currency` (USD), decided by row count alone.
previewYesFirst flagged rows then first OK rows, up to 20. IBANs are masked.
summaryYesCounts by status and finding code, countries seen, columns detected. Mirrors AuditSummary in the API.
checkoutNoRoute to call for payment, e.g. "POST /v1/audit/checkout/{job}". Null once paid.
currencyNo
downloadNoSet only once paid and with the matching session — always null from this tool.
retentionNoHow long the job is kept before it purges.
checkout_urlNoPresent only when `checkout: true` was passed and the session was created: a Stripe Checkout URL for a human to open.
checkout_session_idNoPresent alongside checkout_url — pass it to audit_status as `session_id` right after a human pays.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.8.0
    • addedOutput schema / properties / price
      Added value: +{
      +  "description": "Price of the full report, in the currency given by `currency` (USD), decided by row count alone.",
      +  "type": "number"
      +}
    • removedOutput schema / properties / price_chf
      Removed value: -{
      -  "description": "Price of the full report in CHF, decided by row count alone.",
      -  "type": "number"
      -}
  2. Addedv1.5.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations supply only a title, so the description carries the full burden and does so well: it discloses the 5 MB client-side rejection rationale (stdio channel), the 20,000-row route limit with the 400 too_many_rows code, that the call returns a free preview and never the full report, that it never charges automatically, and that a human must complete Stripe checkout. These are exactly the side-effect and cost facts an agent needs before invoking.

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?

Content is front-loaded and organized under USE WHEN / HOW / LIMITS / RETURNS / COST headings, so an agent can scan to the relevant part. It is dense and some sentences are long, but nearly every clause carries operational information (limits, return shape, payment flow) rather than 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?

For a tool that mutates state via a paid checkout and returns a truncated preview, the description covers input encoding, size/row limits, preview composition with masking, the job-id lifecycle, pricing tiers, and the no-auto-pay guarantee. Even with an output schema present, nothing needed to call it correctly appears to be 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 nevertheless adds workflow meaning by explaining that the extension drives CSV-vs-XLSX parsing and by tying `checkout: true` to receiving a URL and then polling audit_status with the same `job` id. That linkage across tools is not expressible in the schema alone.

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 opening sentence names a specific verb and resource ('Audit an entire creditor/supplier payment file (CSV or XLSX) row by row') and then enumerates the exact checks performed. It explicitly distinguishes itself from single-record siblings by calling out checks 'a single IBAN call cannot make', so an agent can separate it from validate_iban without opening either schema.

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?

A dedicated USE WHEN block gives concrete trigger scenarios (accounts-payable file, vendor master, payment batch) and even sample user phrasings ('check this supplier list'). Alternatives are implied by naming what a single-IBAN call cannot do, leaving little to inference about when this tool is the right choice.

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