Skip to main content
Glama
iso20022-bank-profile-mcp

iso20022-bank-profile-mcp

Lint a payload against a profile

lint_payload
Read-onlyIdempotent

Validate ISO 20022 XML or JSON payment payloads against a bank clearing profile to find rule violations, missing elements, and format defects before submitting to CBPR+, SEPA, or FedNow.

Instructions

Evaluate a payload against a clearing profile and return findings.

Purpose:
    Validate an ISO 20022 XML or JSON message payload against the
    market-practice rules and constraints of a specific bank clearing profile.

When to use:
    Use before submitting payment messages to clearing rails (CBPR+, SEPA,
    FedNow) to identify rule violations, missing elements, or format defects.

When NOT to use:
    Evaluates market-practice clearing rules rather than XSD schemas or
    rule-pack definitions; use structural XML validators for XSD
    conformance and `validate_profile_definition` for rule-pack JSON.

Behavioral transparency:
    - Deterministic: Identical payload and profile_id produce identical
      findings.
    - External dependencies: None (defusedxml parser only).
    - Side effects: Pure read-only operation; writes no data.
    - Error states: Returns an error object on XML syntax error,
      unknown profile_id, or entitlement failure.

Args:
    payload_content: The raw ISO 20022 message text.
    profile_id: The clearing profile to lint against.

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": {
      "payload_content": "<payload_content>",
      "profile_id": "<profile_id>"
    },
    "name": "lint_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
profile_idYesThe clearing profile to lint against.
payload_contentYesRaw ISO 20022 payload text (not a path).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior, but the description adds substantive context beyond them: deterministic findings, no external dependencies beyond defusedxml, no writes, and clear error states for XML syntax errors, unknown profile_id, and entitlement failures.

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?

The description is well structured with front-loaded purpose, usage, exclusions, behavior, and arguments. It is slightly longer than necessary because the Args section repeats schema descriptions, but nearly every section contributes useful operational context.

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 the tool's complexity, an output schema exists so return values need not be described in detail. The definition covers purpose, usage boundaries, alternatives, behavioral traits, error conditions, and parameter meaning sufficiently for an agent to invoke it correctly.

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%, and the schema already explains that `payload_content` is raw ISO 20022 payload text rather than a path and that `profile_id` selects the clearing profile. The description's Args section largely repeats that information without adding new format, syntax, or constraint details.

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 states a specific verb and resource: evaluate an ISO 20022 XML/JSON payload against a clearing profile and return findings. It explicitly distinguishes this from structural XSD validation and from `validate_profile_definition`, so the agent can tell what the tool does and does not cover.

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?

It gives explicit when-to-use guidance (before submitting to CBPR+, SEPA, FedNow clearing rails) and explicit when-not-to-use guidance, naming alternatives for XSD conformance and rule-pack JSON validation. This is exactly the routing information an agent needs.

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