Skip to main content
Glama

Code402 Non-Custodial Financial Verification MCP

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.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "instruction": {
        "debtor": {
          "iban": "DE89370400440532013000"
        },
        "creditor": {
          "iban": "DE77100100100123456789"
        },
        "end_to_end_id": "E2E-1001",
        "instructed_amount": {
          "currency": "USD",
          "amount_str": "250.00",
          "amount_minor": "250000000"
        }
      },
      "seller_pay_to_address": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f"
    },
    "name": "iso20022_to_x402_intent"
  }
}

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. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "instruction": {
      -      "creditor": {
      -        "iban": "DE77100100100123456789"
      -      },
      -      "debtor": {
      -        "iban": "DE89370400440532013000"
      -      },
      -      "end_to_end_id": "E2E-1001",
      -      "instructed_amount": {
      -        "amount_minor": "250000000",
      -        "amount_str": "250.00",
      -        "currency": "USD"
      -      }
      -    },
      -    "seller_pay_to_address": "0xc59c85e661d34084a7769f955d17fd38254a6235"
      -  }
      -]New value: +[
      +  {
      +    "instruction": {
      +      "creditor": {
      +        "iban": "DE77100100100123456789"
      +      },
      +      "debtor": {
      +        "iban": "DE89370400440532013000"
      +      },
      +      "end_to_end_id": "E2E-1001",
      +      "instructed_amount": {
      +        "amount_minor": "250000000",
      +        "amount_str": "250.00",
      +        "currency": "USD"
      +      }
      +    },
      +    "seller_pay_to_address": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "instruction": {
      -      "creditor": {
      -        "iban": "DE77100100100123456789"
      -      },
      -      "debtor": {
      -        "iban": "DE89370400440532013000"
      -      },
      -      "end_to_end_id": "E2E-1001",
      -      "instructed_amount": {
      -        "amount_minor": "250000000",
      -        "amount_str": "250.00",
      -        "currency": "USD"
      -      }
      -    },
      -    "seller_pay_to_address": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f"
      -  }
      -]New value: +[
      +  {
      +    "instruction": {
      +      "creditor": {
      +        "iban": "DE77100100100123456789"
      +      },
      +      "debtor": {
      +        "iban": "DE89370400440532013000"
      +      },
      +      "end_to_end_id": "E2E-1001",
      +      "instructed_amount": {
      +        "amount_minor": "250000000",
      +        "amount_str": "250.00",
      +        "currency": "USD"
      +      }
      +    },
      +    "seller_pay_to_address": "0xc59c85e661d34084a7769f955d17fd38254a6235"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "instruction": {
      -      "creditor": {
      -        "iban": "DE77100100100123456789"
      -      },
      -      "debtor": {
      -        "iban": "DE89370400440532013000"
      -      },
      -      "end_to_end_id": "E2E-1001",
      -      "instructed_amount": {
      -        "amount_minor": "250000000",
      -        "amount_str": "250.00",
      -        "currency": "USD"
      -      }
      -    },
      -    "seller_pay_to_address": "0xc59c85e661d34084a7769f955d17fd38254a6235"
      -  }
      -]New value: +[
      +  {
      +    "instruction": {
      +      "creditor": {
      +        "iban": "DE77100100100123456789"
      +      },
      +      "debtor": {
      +        "iban": "DE89370400440532013000"
      +      },
      +      "end_to_end_id": "E2E-1001",
      +      "instructed_amount": {
      +        "amount_minor": "250000000",
      +        "amount_str": "250.00",
      +        "currency": "USD"
      +      }
      +    },
      +    "seller_pay_to_address": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f"
      +  }
      +]
  4. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds real context beyond them: the output is a deterministic EIP-712 template rather than a settlement, and the tool is explicitly non-custodial with no fiat leg — important for an agent reasoning about what side effects to expect. It stops short of stating permissions/auth needs or whether signing keys are involved.

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?

A single front-loaded sentence with no filler; the verb and resource lead and the qualifiers follow. The density of jargon (BAP-1, x402, EIP-712, pacs.008) is defensible for a specialist tool but makes it slightly less immediately scannable than a fully optimal definition.

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?

With a 100%-described schema, an output schema, and rich annotations, the description needs only to explain what the tool produces and its scope — which it does. The main omission is making the dependency on prior validation and the intended call sequence (map intent before settlement) explicit rather than implied.

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 each of the four parameters (chain_id, instruction, seller_pay_to_address, counterparty_wallet_directory) is documented structurally. The description adds no further semantics about the instruction object shape, the chain_id default behavior, or how the wallet directory resolves addresses, so the baseline of 3 applies.

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 precise verb and resource: 'Translates validated ISO 20022 payment instructions (pain.001 / pacs.008) into deterministic EIP-712 payment-intent templates.' It also names the downstream target (x402 Base L2 USDC settlement, BAP-1), so an agent can tell immediately that this is a message-to-intent converter, not a validator or a balance/settlement tool like the siblings.

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 word 'validated' implies the prerequisite that the instruction must first pass iso20022_validate, and 'zero custody, no fiat leg' scopes what this tool does not do. However, no alternative or sibling is named explicitly and there is no explicit when-not guidance, so the routing signal is inferred rather than stated.

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.