Skip to main content
Glama

IDNTEQ tools

ISO 8583 compare

iso8583_compare
Read-onlyIdempotent

Decodes two ISO 8583 messages (ISO 8583:1987 (message type indicator, primary and secondary bitmaps, data elements 2–128)), each in its own dialect, and compares them by data element on the decoded values, so messages in different dialects can be compared. Each element is same, different, only in A or only in B; when both carry DE 55 the EMV tags inside are compared too. Notes when B's MTI is the response to A's. May contain card data; mask hides it. Use test keys and test data only.

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": {
      "message_a": "303130307224068020C09200313634373631373339303031303130303130303030303030303030303030303032353530313133303134333031353030303132333238313230353130303130303337343736313733393030313031303031303D32383132323031313233343536373830303030305445524D303030314D45524348414E54303030303030313938361A2B3C4D5E6F70813039319F26088E19ED4B98AE5A419F2701809F100706011203A000009F37049BADBCAB9F36020027950500000400009A032611309C01009F02060000000025505F2A020986820239009F1A0200769F3303E0F0C85A084761739001010010",
      "message_b": "30313130722000000E8082003136343736313733393030313031303031303030303030303030303030303030323535303131333031343330313630303031323336333334313430303031323341314232433330305445524D30303031393836303136910A3D6E8A01B2C3D4E500008A023030"
    },
    "name": "iso8583_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
maskNoMask the PAN (first 6 and last 4 digits shown), track data and cardholder name in the output.
header_aNoLength header before the MTI: none, 2-byte binary, or 4 ASCII digits.none
header_bNoLength header before the MTI: none, 2-byte binary, or 4 ASCII digits.none
dialect_aNoascii: MTI and numeric fields as ASCII digits, binary bitmap. asciihex: as ascii with the bitmap as 16 ASCII hex characters. bcd: MTI and numeric fields packed BCD, binary bitmap (ISO 8583:1987 binary).ascii
dialect_bNoascii: MTI and numeric fields as ASCII digits, binary bitmap. asciihex: as ascii with the bitmap as 16 ASCII hex characters. bcd: MTI and numeric fields packed BCD, binary bitmap (ISO 8583:1987 binary).ascii
message_aYesFirst message, hex.
message_bYesSecond message, hex.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it defines the result taxonomy (same, different, only in A, only in B), discloses the extra EMV-tag comparison inside DE 55, and notes the MTI request/response relationship check. It also warns that output may contain card data and that mask suppresses PAN, track data and cardholder name.

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?

Front-loaded with the core action and comparison semantics, then edge cases, then safety. It is dense and semicolon-chained rather than wasteful, though the packed single paragraph and the parenthetical schema recap of bitmaps/DEs make it slightly heavier than needed.

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 7-parameter, no-output-schema tool, the description supplies the return structure and the DE 55 / MTI special cases an agent needs. Remaining gaps are minor: failure behavior when one message cannot be decoded, and the output serialization, are unstated.

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 coverage is 100% with enums documented for header/dialect, so the schema already carries the parameter burden. The description reinforces that the two dialect parameters are independent per message, but adds no format detail (e.g., hex encoding of message_a/message_b, or how header length interacts with dialect) 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?

States a precise compound verb+resource: decodes two ISO 8583 messages and compares them element-by-element, explicitly noting each message may be in its own dialect, which separates it from a plain single-message decode. The spec scope (1987 MTI, primary/secondary bitmaps, DE 2-128) further pins down what 'compare' means.

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?

Usage is implied rather than routed: it is clear you call this when you have two messages to reconcile, and it adds a safety constraint ('Use test keys and test data only') plus the mask hint. It never states when to prefer a single-message decode or how to handle a pair that fails to decode, so guidance stops short of explicit when/when-not.

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.

Resources