Skip to main content
Glama

varioroam eSIM configurator

Plan a multi-country trip

plan_trip
Read-onlyIdempotent

A trip through several countries (max 5): one eSIM per country, each quoted with the same data pool and days unless given per country (gb omitted = sized for normal use from the days). days is PER COUNTRY, never the whole trip: for a 12-day trip through Japan and Thailand pass per_country days that add up to 12 (e.g. 7 + 5). Returns one line per country with price and buy_url, plus the total. Use when the customer names two or more countries and a size (2–5 destinations); for one country call quote_esim; use recommend_config when they describe usage instead.

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": {
      "destinations": "<destinations>"
    },
    "name": "plan_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
gbNoData pool per country in whole GB (1–100). Omit = sized for normal use from the days (1.5 GB/day).
daysNoValidity days in EACH country (1–90, default 7) — NOT the length of the whole trip. A 12-day trip through 3 countries is about 4 days per country: split the trip with per_country days that add up to the trip length.
bucketNoOptional language-region bucket the customer shops in, e.g. en-gb, de-de (sets currency and link locale). Defaults from language.
currencyNo
languageNoISO language of the conversation, e.g. en, de, ja. Localizes country names and sets the language/currency of links and prices.
per_countryNoOptional overrides per country (gb and/or days, same ranges as above). Use it to split the trip: the days of all countries together should add up to the trip length.
destinationsYesCountries of the trip (2–5), any language or ISO codes, in travel order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Validity days per country (1–90). Default 7."New value: +"Validity days in EACH country (1–90, default 7) — NOT the length of the whole trip. A 12-day trip through 3 countries is about 4 days per country: split the trip with per_country days that add up to the trip length."
    • changedInput schema / properties / per_country / description
      Previous value: -"Optional overrides per country (gb and/or days, same ranges as above)."New value: +"Optional overrides per country (gb and/or days, same ranges as above). Use it to split the trip: the days of all countries together should add up to the trip length."
  2. Changed12 schema fields changed
    • addedInput schema / properties / days / maximum
      Added value: +90
    • addedInput schema / properties / days / minimum
      Added value: +1
    • changedInput schema / properties / destinations / description
      Previous value: -"Countries of the trip, any language or ISO codes, in travel order."New value: +"Countries of the trip (2–5), any language or ISO codes, in travel order."
    • addedInput schema / properties / destinations / minItems
      Added value: +2
    • changedInput schema / properties / per_country / description
      Previous value: -"Optional overrides per country (gb and/or days)."New value: +"Optional overrides per country (gb and/or days, same ranges as above)."
    • addedInput schema / properties / per_country / items / properties / days / description
      Added value: +"Validity days (1–90) for this country."
    • addedInput schema / properties / per_country / items / properties / days / maximum
      Added value: +90
    • addedInput schema / properties / per_country / items / properties / days / minimum
      Added value: +1
    • addedInput schema / properties / per_country / items / properties / gb / description
      Added value: +"Whole GB (1–100) for this country."
    • addedInput schema / properties / per_country / items / properties / gb / maximum
      Added value: +100
    • addedInput schema / properties / per_country / items / properties / gb / minimum
      Added value: +1
    • changedInput schema / properties / per_country / items / properties / gb / type
      Previous value: -"number"New value: +"integer"
  3. Changed4 schema fields changed
    • changedInput schema / properties / gb / description
      Previous value: -"Data pool per country in GB (1–100). Default 5."New value: +"Data pool per country in whole GB (1–100). Omit = sized for normal use from the days (1.5 GB/day)."
    • addedInput schema / properties / gb / maximum
      Added value: +100
    • addedInput schema / properties / gb / minimum
      Added value: +1
    • changedInput schema / properties / gb / type
      Previous value: -"number"New value: +"integer"
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds behaviour beyond that: the return shape (price and buy_url per line plus a total) and the default sizing rule (gb omitted = 1.5 GB/day from days), which an agent needs to predict output.

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?

Front-loaded with scope and the critical per-country warning, then routing rules, then return format — a sensible order. Slightly redundant, since the per-country-days point is restated in the schema and in per_country, but the repetition targets the single most likely invocation error.

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 7-parameter tool with a nested per-country override and no output schema, the description covers trigger conditions, the trickiest parameter semantics with an example, defaults, and the exact return contents. Nothing needed to call it correctly 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 86%, so the baseline is 3; the description earns an extra point by hammering the genuinely error-prone semantic — days is per country, not for the whole trip — and giving a worked split example (7 + 5 for a 12-day Japan/Thailand trip). It does not document bucket, currency or language, relying on the schema for those.

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 ('plan a trip through several countries: one eSIM per country') with an explicit scope cap (max 5) and what it returns (one line per country plus total). The agent can distinguish it from quote_esim and recommend_config without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a positive trigger ('two or more countries and a size, 2–5 destinations') plus explicit routing for the two near-miss cases: one country goes to quote_esim, usage-based descriptions go to recommend_config. Both when-to-use and when-not-to-use are covered.

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.

Resources