Skip to main content
Glama

IDNTEQ tools

EMV DOL decoder

emv_dol_decode
Read-onlyIdempotent

Decodes an EMV Data Object List (EMV 4.4 Book 3 §5.4): a list of tags each followed by a one-byte length, with no values, as in PDOL (9F38), CDOL1 (8C), CDOL2 (8D), TDOL (97) and DDOL (9F49). Returns each tag with its EMV name, the length the card asks for, its offset in the data the terminal builds, and the total length of that data.

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": {
      "dol": "9F02069F03069F1A0295055F2A029A039C019F3704"
    },
    "name": "emv_dol_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
dolYesThe DOL value as hex (without its own tag and length), for example 9F02069F03069F1A0295055F2A029A039C019F3704.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered; the description adds real value by enumerating what is returned for each tag — EMV name, requested length, offset in the terminal-built data, and total data length. It omits behavior on malformed input (truncated list, odd-length hex), which is the remaining gap.

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?

Two sentences, zero filler: the decoding behavior and spec anchor come first, the return shape second. The parenthetical spec citation and container list are dense but every element earns its place.

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 one-parameter, read-only, closed-world tool with no output schema, the definition covers input format, semantics, and return structure adequately. Only the handling of invalid or truncated DOLs is left 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% and the single parameter already carries a description plus a worked hex example, so the schema does the heavy lifting. The description's note about tags with no values reinforces the expected input but adds no format or parsing detail beyond what the schema states.

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 specific verb and resource ("Decodes an EMV Data Object List") and cites the exact standard section (EMV 4.4 Book 3 §5.4). It further distinguishes the format from generic TLV decoding by specifying "a list of tags each followed by a one-byte length, with no values," and names the concrete container types (PDOL 9F38, CDOL1 8C, CDOL2 8D, TDOL 97, DDOL 9F49).

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 description makes the applicable input shape clear through the named DOL containers, which implies when to reach for it. However, it never states when not to use it or points to the obvious alternative (emv_tlv_decode) for tag-length-value data that actually carries values, leaving the sibling boundary to be inferred.

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