eSIM activation code decoder
esim_activation_code_parseDecodes an eSIM activation code (GSMA SGP.22 §4.1, the string an eSIM QR code carries, e.g. LPA:1$SMDP.EXAMPLE.COM$MATCHING-ID): format version, SM-DP+ address (checked as an FQDN), matching ID, SM-DP+ OID, confirmation-code-required flag, and the SGP.22 v3 fields (CI public key indicator, Delete Notification for Device Change). Warns about a bad format version, address, OID, flag or length. Activation codes identify a profile download: use test codes.
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": {
"code": "LPA:1$SMDP.GSMA.COM$04386-AGYFT-A74Y8-3F815$1.3.6.1.4.1.31746$1"
},
"name": "esim_activation_code_parse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The activation code, with or without the LPA: prefix. |