Skip to main content
Glama

Set an eSIM's intended phone

set_esim_device
Idempotent

Staff only. Chooses which of the account's known phones a not-installed eSIM is for, so that phone's tab on the eSIMs page shows it. Writes only that phone; install state, plan, numbers, name and billing are untouched. Pick the device_id from list_account_devices. Without confirm it shows what would change.

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": {
      "consumer_user_id": "<consumer_user_id>",
      "esim_identity_id": "<esim_identity_id>",
      "device_id": "<device_id>"
    },
    "name": "set_esim_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoStores the choice.
device_idYesA known device id from list_account_devices.
consumer_user_idYesThe customer's seat (consumer_user_id from find_account).
esim_identity_idYesThe eSIM's id (sim_id) from the eSIMs page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / account
      Removed value: -{
      -  "description": "The account seat (consumer_user_id).",
      -  "type": "string"
      -}
    • addedInput schema / properties / consumer_user_id
      Added value: +{
      +  "description": "The customer's seat (consumer_user_id from find_account).",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "account",
      -  "esim_identity_id",
      -  "device_id"
      -]New value: +[
      +  "consumer_user_id",
      +  "esim_identity_id",
      +  "device_id"
      +]
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by naming the blast radius: only the intended-phone field is written, while install state, plan, numbers, name and billing are untouched. It also discloses the auth gate (staff only) and the preview-vs-commit behavior of omitting confirm, which the annotations alone (readOnlyHint=false, destructiveHint=false, idempotentHint=true) do not convey.

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?

The staff-only constraint and the core effect are front-loaded, and every following sentence adds a distinct fact (scope limit, blast radius, id source, dry-run). No repetition of the name or title and no filler.

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?

For a four-parameter mutation with no output schema, the description covers authorization, the eligible object state, the side effects avoided, the prerequisite lookup tool, and the commit-vs-preview distinction. Nothing an agent needs to call it safely against a real account 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 baseline is 3, and the description adds real meaning on top: it identifies list_account_devices as the source of device_id and clarifies that omitting confirm produces a preview rather than a silent no-op. That preview semantics is more than the schema's terse 'Stores the choice.'

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: choosing which of the account's known phones a not-installed eSIM is intended for, and names the visible effect (that phone's tab on the eSIMs page). The scope limit (only not-installed eSIMs) separates it from install-state tooling like esim_install_steps without needing the sibling schema.

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?

Gives clear preconditions and routing: staff-only, applies only to not-installed eSIMs, and device_id must come from list_account_devices; it also explains the dry-run path when confirm is omitted. It stops short of an explicit when-not-to-use-except-some-other-tool statement, so it is strong but not fully closed.

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.