Skip to main content
Glama

IDNTEQ tools

ICCID parser

sim_iccid_parse
Read-onlyIdempotent

Parses an ICCID (Integrated Circuit Card Identifier, ITU-T E.118): checks the Luhn check digit (ISO/IEC 7812-1) and gives the correct one when it fails, splits the major industry identifier (89), the E.164 country code (with every plausible reading, e.g. the zero-padded 01 North American layout or an MCC in the country position) and the issuer/account digits, and gives the on-card EF_ICCID (2FE2) content as swapped-nibble BCD padded with F to 10 bytes (ETSI TS 102 221 §13.2). Accepts the printed digits or raw EF_ICCID hex; raw content is recognised by its structure, or forced with raw: true. Country and operator names come from the ITU-T E.164 and E.212 lists; the answer carries their source credit.

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": {
      "iccid": "8955010012832773428"
    },
    "name": "sim_iccid_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNoRead the input as raw EF_ICCID bytes (swapped-nibble BCD) whatever it looks like. Default false: decided from the input's structure.
iccidYesThe printed ICCID (18–20 digits, spaces allowed) or raw EF_ICCID content as hex.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a read-only, idempotent, non-destructive operation, and the description adds real behavior: it returns plausible country-code readings rather than a single answer, supplies the correct check digit on failure, emits 10-byte F-padded swapped-nibble BCD, and cites the ITU/E.212 sources. Minor gap: it doesn't say what happens on unparseable input.

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 structured as a sequence of outputs, but the single dense sentence with stacked parentheticals (ITU-T E.118, ISO/IEC 7812-1, ETSI TS 102 221 §13.2) is heavier than it needs to be.

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?

There is no output schema, so the description must describe returns, and it does: check-digit outcome, MII/country/issuer decomposition with multiple readings, EF_ICCID hex, and operator/country names with source credit. Nothing essential for correct invocation is missing.

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 coverage is 100%, so the parameters are already documented; the description still adds meaning by explaining that raw detection is structural by default and that raw: true overrides that guess, which the schema states only tersely.

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 ('Parses') and resource (ICCID, ITU-T E.118) and enumerates the outputs it produces: Luhn check, MII/country/issuer split, EF_ICCID BCD form. This is clearly distinct from the sibling sim_iccid_generate, which produces rather than parses ICCIDs.

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?

Explains the two accepted input forms and how raw EF_ICCID content is selected (structure-detected by default, or forced with raw: true), which is the key decision an agent faces. It does not point to alternatives such as the generator, but the parse-vs-generate distinction is implicit and low-risk.

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