Skip to main content
Glama
norma43-mcp

norma43-mcp

Build SEPA direct debit batch (remesa de recibos)

sepa_direct_debits
Read-onlyIdempotent

Build pain.008.001.02 remittance XML (Cuaderno 19.14) for Spanish banks, validating every IBAN, creditor ID and mandate first so one bad recibo never rejects the whole file.

Instructions

Remesa de recibos SEPA: the pain.008.001.02 XML (Cuaderno 19.14) Spanish banks accept for direct debits.

For despachos collecting monthly fees (cuotas) and for clients that charge their customers by recibo. Every IBAN, the creditor identifier and each mandate are checked first; one wrong recibo refuses the whole file with the reason (free), so a batch never reaches the bank half-wrong. Same input, same bytes.

Args: creditor: {"name": "Asesoría Pérez SL", "iban": "ES91...", "bic": optional, "creditor_id": "ES12000B..." or "nif": "B12345678" to compute it (business_code optional, default 000)}. collection_date: Requested collection date (YYYY-MM-DD). CORE needs it 1-2 business days ahead. debits: [{"name": "Talleres Ruiz SL", "iban": "ES...", "amount": "60.50", "mandate_id": "CUOTA-0012", "mandate_date": "2024-01-15", "concept": "Cuota marzo 2026", "end_to_end_id": optional, "sequence_type": optional per recibo}]. sequence_type: Default for all recibos: RCUR (recurring, default), FRST (first), OOFF (one-off), FNAL. scheme: CORE (consumers and companies, default) or B2B. created_at: Optional YYYY-MM-DDTHH:MM:SS; defaults to collection_date 09:00 so the file is reproducible.

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": {
      "creditor": "<creditor>",
      "collection_date": "<collection_date>",
      "debits": "<debits>"
    },
    "name": "sepa_direct_debits"
  }
}

Input Schema

NameRequiredDescriptionDefault
debitsYes
schemeNoCORE
creditorYes
created_atNo
sequence_typeNoRCUR
collection_dateYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.1

TDQS

A4.2/5.0
Behavior3/5

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

Goes well beyond the annotations by disclosing the pre-flight validation gate, the all-or-nothing failure mode ('one wrong recibo refuses the whole file'), the error-reason feedback, and byte-level determinism. It does not cover what the caller receives back (file, base64, path) or any size/batch limits, so it stops short of full behavioral disclosure.

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

Conciseness5/5

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

Front-loads the artifact and audience in the first two lines, then a structured Args block where every entry maps to a real parameter. All six parameters get exactly one entry, with no repetition or drift from the schema.

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 6-parameter nested-input generator with an output schema present, this covers the inputs thoroughly and the behavior adequately. Only the returned artifact format and the exact failure response shape are left unstated, which are minor given the output schema.

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?

Compensates strongly for 0% schema coverage: nested creditor fields (name, iban, bic, creditor_id vs nif with business_code default), debit item fields, and the sequence_type/scheme enumerations are all spelled out with meaning. The one gap is that the shape of per-recuento overrides and the created_at default interaction with collection_date are implied rather than fully specified.

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?

Names a specific verb and artifact: it builds the pain.008.001.02 XML (Cuaderno 19.14) that Spanish banks accept for direct debits. It also states the two audiences (despachos collecting cuotas; clients charging by recibo), which cleanly separates it from sepa_credit_transfers.

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 situational guidance ('monthly fees (cuotas)', 'charge their customers by recibo') and the CORE lead-time rule for collection_date. It never states an explicit exclusion or names which sibling to use for outbound payments, so the when-not side is left to inference.

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