Skip to main content
Glama

Search eSIM plans

search_esim_plans
Read-onlyIdempotent

Find prepaid eSIM data plans for travel by country or region, with filters for data allowance, validity, price, 5G, hotspot, calls/SMS and top-up support.

Instructions

Search prepaid eSIM data plans for travel by country or region: data allowance, validity, price, 5G, hotspot, calls/SMS and top-up support. Results are paged - pass cursor for more. Next: show the user the plan and price, then purchase_esim with the prod_ id and that price as max_price_cents.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_esim_plans"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNoSubstring search on plan title (e.g. 'Europe')
cursorNo
has_5gNo
countryNoISO-3166 country code, any case (e.g. 'JP'): plans that cover this country
min_daysNo
has_hotspotNo
min_data_gbNo

Output Schema

NameRequiredDescriptionDefault
esim_plansYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed3 schema fields changedv1.2.1
    • changedInput schema / properties / country / description
      Previous value: -"ISO-3166 country code (e.g. 'JP')"New value: +"ISO-3166 country code, any case (e.g. 'JP'): plans that cover this country"
    • addedInput schema / properties / country / pattern
      Added value: +"^[A-Za-z]{2}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "esim_plans": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "countries": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "country_count": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "currency": {
      +            "const": "USD",
      +            "type": "string"
      +          },
      +          "data_limit_gb": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "data_unlimited": {
      +            "type": "boolean"
      +          },
      +          "features": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "has_5g": {
      +                "type": "boolean"
      +              },
      +              "has_calls": {
      +                "type": "boolean"
      +              },
      +              "has_hotspot": {
      +                "type": "boolean"
      +              },
      +              "has_sms": {
      +                "type": "boolean"
      +              },
      +              "supports_topup": {
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "has_5g",
      +              "has_hotspot",
      +              "has_calls",
      +              "has_sms",
      +              "supports_topup"
      +            ],
      +            "type": "object"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "price_cents": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "region": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "routing_location": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "validity_days": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "title",
      +          "countries",
      +          "region",
      +          "country_count",
      +          "routing_location",
      +          "data_limit_gb",
      +          "data_unlimited",
      +          "validity_days",
      +          "features",
      +          "price_cents",
      +          "currency"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "esim_plans",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  3. Changed6 schema fields changedv1.1.8
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / min_data_gb / minimum
      Added value: +0
    • addedInput schema / properties / min_days / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / min_days / minimum
      Added value: +0
    • changedInput schema / properties / min_days / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / query / description
      Previous value: -"Substring search on plan title"New value: +"Substring search on plan title (e.g. 'Europe')"
  4. First observedv1.1.3

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds genuinely new behavior: results are paged and require passing cursor, and the price returned must be echoed as max_price_cents on purchase — a meaningful constraint the annotations 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three front-loaded sentences with no filler: capability first, paging second, workflow handoff last. The final sentence is long but each clause (show plan, pass prod_ id, use price as max_price_cents) carries actionable information.

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?

An output schema exists, so return values need no explanation, and the description covers paging and the downstream purchase linkage. Remaining gaps are minor: no mention of default/maximum page size or behavior when filters yield nothing, but an agent can call this correctly from what is given.

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 coverage is only 25%, so the description must carry weight. It maps country/region, 5G, hotspot, data allowance and validity to the boolean/numeric filters and explains cursor paging, but leaves limit and query unexplained and does not clarify whether country is required or how region matching differs from the ISO country code pattern.

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 ('Search prepaid eSIM data plans for travel') plus the dimensions surfaced (data allowance, validity, price, 5G, hotspot, calls/SMS, top-up). It is clearly distinguishable from siblings purchase_esim, topup_esim and search_dedicated_countries.

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 usage context (travel plans filtered by country or region) and an explicit next-step handoff: show the plan and price, then call purchase_esim with the prod_ id and price as max_price_cents. It does not state when to prefer an alternative search tool or what to do when no results return, so it stops short of full when/when-not guidance.

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