Skip to main content
Glama

eSIM status, usage and QR code

get_esim_status
Read-onlyIdempotent

Read an eSIM's status, expiry, LPA install details, and per-package data usage with an eSIM-level total; optionally return the activation QR code image for scanning.

Instructions

Read an eSIM's status, expiry, install details (LPA string) and data usage for every package on it (the base plan plus any top-ups), with an eSIM-level total. With include_qr=true it also returns the activation QR code as an image, which most clients show inline for the user to scan.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "esim_id": "<esim_id>"
    },
    "name": "get_esim_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
esim_idYesesim_... id from purchase_esim or list_orders
include_qrNoAlso return the activation QR code as a PNG image (completed eSIMs; top-ups have none)

Output Schema

NameRequiredDescriptionDefault
esimYes
usageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / include_qr
      Added value: +{
      +  "default": false,
      +  "description": "Also return the activation QR code as a PNG image (completed eSIMs; top-ups have none)",
      +  "type": "boolean"
      +}
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv1.2.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "esim": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "activation_code": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "charged_price_cents": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "completed_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "countries": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "currency": {
      +          "const": "USD",
      +          "type": "string"
      +        },
      +        "data_limit_gb": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "data_unlimited": {
      +          "type": "boolean"
      +        },
      +        "expires_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "iccid": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "is_topup": {
      +          "type": "boolean"
      +        },
      +        "parent_order_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "product_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "qr_code_url": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "routing_location": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "smdp_address": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "status": {
      +          "enum": [
      +            "processing",
      +            "completed",
      +            "cancelled",
      +            "refunded",
      +            "expired"
      +          ],
      +          "type": "string"
      +        },
      +        "validity_days": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "status",
      +        "product_id",
      +        "is_topup",
      +        "parent_order_id",
      +        "iccid",
      +        "activation_code",
      +        "qr_code_url",
      +        "smdp_address",
      +        "data_limit_gb",
      +        "data_unlimited",
      +        "validity_days",
      +        "countries",
      +        "routing_location",
      +        "charged_price_cents",
      +        "currency",
      +        "created_at",
      +        "completed_at",
      +        "expires_at"
      +      ],
      +      "type": "object"
      +    },
      +    "usage": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "esim_id": {
      +              "type": "string"
      +            },
      +            "esim_status": {
      +              "type": "string"
      +            },
      +            "packages": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "activation_date": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "expiration_date": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "percent_used": {
      +                    "type": "number"
      +                  },
      +                  "remaining_gb": {
      +                    "type": "number"
      +                  },
      +                  "remaining_mb": {
      +                    "type": "number"
      +                  },
      +                  "total_gb": {
      +                    "type": "number"
      +                  },
      +                  "total_mb": {
      +                    "type": "number"
      +                  },
      +                  "used_gb": {
      +                    "type": "number"
      +                  },
      +                  "used_mb": {
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "name",
      +                  "total_mb",
      +                  "total_gb",
      +                  "used_mb",
      +                  "used_gb",
      +                  "remaining_mb",
      +                  "remaining_gb",
      +                  "percent_used",
      +                  "activation_date",
      +                  "expiration_date"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "esim_id",
      +            "esim_status",
      +            "packages"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "esim",
      +    "usage"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changedv1.1.8
    • addedInput schema / properties / esim_id / description
      Added value: +"esim_... id from purchase_esim or list_orders"
    • addedInput schema / properties / esim_id / pattern
      Added value: +"^(?:esim_[A-Za-z0-9_-]{1,64})$"
  4. First observedv1.1.3

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish that this is a safe, read-only, idempotent operation. Beyond that, the description adds useful behavioral context: it returns data for every package including top-ups, provides an eSIM-level total, and explains that include_qr returns an image clients typically display inline for scanning. It does not describe error or not-found behavior, but the annotations lower that burden.

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?

The description is front-loaded and efficient, covering the core read behavior in one sentence and the optional QR behavior in a second. It is appropriately sized, with no obvious filler, though the long first sentence could be slightly easier to scan.

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 read-only eSIM status tool with an output schema, full schema coverage, and annotations, the description provides enough context to call it correctly. It explains the scope of returned data and the QR option; minor gaps around permissions or error cases are acceptable given the structured metadata.

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 description coverage is 100%, so both parameters are already documented in the input schema. The description adds some practical context for include_qr by saying most clients show the QR image inline for the user to scan, but it does not materially clarify esim_id beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource: read an eSIM's status, expiry, install details, data usage, and optional QR code. It clearly distinguishes this from purchase/creation siblings by focusing on reading an existing eSIM's state and usage, though it does not explicitly name alternatives such as get_rental or get_proxy_status.

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?

Usage is strongly implied: check an eSIM after purchase or top-up, and set include_qr=true when the QR image is needed. However, it does not explicitly state when to use this versus sibling tools such as list_orders or purchase_esim, nor does it describe any exclusions or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.