Skip to main content
Glama

Convert a SWIFT MT message, or look up the mapping

askiso_translate

Convert SWIFT MT and ISO 20022 messages in either direction, or look up field-level mappings, with a fidelity report showing what was carried, shortened, inferred, or dropped.

Instructions

Convert a real message in either direction, or look up the mapping. With mt_message: MT101/104/107 become pain.001/pain.008, MT103 becomes pacs.008, MT202 becomes pacs.009, MT204 becomes pacs.010, MT940 becomes camt.053. With mx_message: pacs.008 becomes MT103, pacs.009 becomes MT202, camt.053 becomes MT940. Either way the result includes a fidelity report naming every source field and whether it was carried, shortened, inferred, or dropped -- nothing is dropped silently. With code: return the field-level cross-reference. MT to MX produces unstructured addresses, which CBPR+ stops accepting once the deferred structured address requirement takes effect; check the result with askiso_check_profile. MX to MT loses purpose codes, legal entity identifiers and structured addresses outright.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "askiso_translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoAn identifier to cross-reference, for example "MT103" or "pacs.008". Ignored when a message is given.
mt_messageNoA complete SWIFT MT message, including its {1:} and {2:} headers.
mx_messageNoA complete ISO 20022 XML message, to convert to MT.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.8

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so well: it discloses the fidelity report, states that nothing is dropped silently, and explains exactly what is lost in MX-to-MT conversion, including purpose codes, legal entity identifiers, and structured addresses. It also warns about unstructured addresses in MT-to-MX output and the CBPR+ structured-address requirement. That is unusually rich behavioral context for a conversion tool.

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 description is front-loaded with the tool's three modes and packs each following sentence with useful mapping or caveat information. There is no filler, and every sentence contributes either routing guidance, mapping detail, or a behavioral warning.

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 three-parameter conversion tool with no output schema and no annotations, the description is nearly complete: it covers all modes, mappings, fidelity reporting, data-loss caveats, and a related check tool. The main remaining gap is that it never contrasts itself with askiso_convert or states whether incomplete messages are rejected or partially converted.

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 description coverage is 100%, so the baseline is 3, but the description adds real meaning: it explains that code returns a field-level cross-reference and is ignored when a message is given, and it supplies concrete mappings for both mt_message and mx_message. It still leaves syntax details, such as accepted header variants or XML envelope requirements, to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource across three operating modes: converting MT with mt_message, converting MX with mx_message, and looking up a cross-reference with code. It spells out concrete message mappings in each direction, so the agent understands the tool's scope precisely. It does not distinguish this tool from the sibling askiso_convert, leaving some ambiguity about which conversion tool to choose.

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 clearly states which parameter selects each mode and what each mode returns, giving the agent enough context to invoke it correctly. It also points to askiso_check_profile as a follow-up for reviewing MT-to-MX address output. It does not explain when to use askiso_convert instead, or any prerequisites for supplying complete message headers.

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