ICCID parser
sim_iccid_parseParses 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
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Read the input as raw EF_ICCID bytes (swapped-nibble BCD) whatever it looks like. Default false: decided from the input's structure. | |
| iccid | Yes | The printed ICCID (18–20 digits, spaces allowed) or raw EF_ICCID content as hex. |