Skip to main content
Glama

BAP-1 ISO 20022 to x402 Intent Mapper

iso20022_to_x402_intent
Read-onlyIdempotent

Translates validated ISO 20022 payment instructions (pain.001 / pacs.008) into deterministic EIP-712 payment-intent templates for autonomous x402 Base L2 USDC settlement (BAP-1). Zero custody, no fiat leg.

Input Schema

NameRequiredDescriptionDefault
chain_idNoTarget chain ID (default 8453 for Base)
instructionYesValidated BAP-1 payment instruction object
seller_pay_to_addressNoFallback recipient Base L2 address
counterparty_wallet_directoryNoEnterprise IBAN -> 0x Base L2 wallet address map

Output Schema

NameRequiredDescriptionDefault
okYes
noticeNo
statusYes
standardYes
intent_templateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, and open-world behavior. The description adds meaningful context beyond them, especially 'zero custody, no fiat leg' and deterministic template generation, though it does not discuss auth, rate limits, or error behavior.

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?

The definition is a single dense sentence that front-loads the core transformation and settlement context with no filler. Every phrase, including custody and fiat caveats, contributes useful information.

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?

Given a full output schema, complete parameter descriptions, nested input objects, and annotations covering safety/idempotency, the description provides sufficient context to select and call the tool correctly. Return-value details are appropriately left to the output schema.

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 documents all four parameters, including chain_id default and fallback recipient. The description adds accepted ISO 20022 message types but does not explain parameter roles or interactions beyond the schema.

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 description names a specific verb and resource: translating validated ISO 20022 pain.001/pacs.008 instructions into EIP-712 payment-intent templates for x402 settlement. It clearly distinguishes this mapping step from validation by specifying the input is already validated.

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?

The description gives clear context for when to use it: after ISO 20022 validation, when producing x402 Base L2 USDC settlement intents. It does not explicitly name alternatives or exclusions, so it falls short of a full when/when-not routing statement.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.