Skip to main content
iso8583sim.core.describe These helpers need no LLM. They power iso8583sim explain --no-llm and the MCP server’s explain_message tool.

Functions

field_name()

Return a field’s description, or “Unknown” if it is not defined.

field_entries()

List a message’s fields (excluding the MTI) as number, name and value entries.

mask_pan()

Mask a PAN, keeping the first six and last four digits.

format_amount()

Format a minor-unit amount (field 4) using the currency’s exponent, e.g. “10.00 USD”.

decode_emv_tags()

Decode EMV TLV data into named tags, explaining the TVR (95) and CID (9F27).

describe_mti()

Describe an MTI’s message class, function and origin.

describe_message()

Describe a message in plain language without an LLM. Parameters
ISO8583Message
required
Parsed message
dict[str, Any]
Dictionary with a one-paragraph “summary”, the MTI breakdown, named fields
dict[str, Any]
and, when field 55 is present, decoded EMV tags