Skip to main content
Glama

Recommend a plan for a trip

recommend_plan
Read-onlyIdempotent

Turn a trip into up to three plan recommendations: countries (1-5, any language), number of days and how much data the traveller uses. Each fit carries the full plan facts, the total price for the whole trip and a one-sentence reason built only from catalogue facts. Use this first whenever the user describes a trip rather than asks for a list.

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": {
      "countries": "<countries>",
      "days": "<days>"
    },
    "name": "recommend_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesTrip length in days.
usageNolight ≈ 0.5 GB/day (maps, messaging), normal ≈ 1.5 GB/day (social, some video), heavy ≈ 4 GB/day (video, hotspot). Default normal.
bucketNoOptional language-region bucket the customer shops in, e.g. "en-gb", "de-de". Wins over language; prices and links are quoted in it.
budgetNoOptional maximum total for the trip, in the result currency.
currencyNoOptional ISO 4217 code. Every price in the result is quoted in it.
languageNoISO language of the conversation, e.g. en, de, ja. Plan names and country names come back in it when available. Bare "en" is quoted in en-us / USD.
countriesYesCountries or regions of the trip, any language.
gb_per_dayNoOverrides usage with an explicit daily need in GB.

Output Schema

NameRequiredDescriptionDefault
tripNo
messageNo
currencyNo
all_plans_urlNo
pricing_bucketNo
recommendationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and open-world, so safety is handled structurally. The description still adds real behavior: results are capped at three, each carries complete plan facts and a whole-trip total price, and the reason sentence is constrained to catalogue facts only, which signals the agent should not expect invented rationale. It does not say how the three fits are ranked or ordered, which is the one notable omission.

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?

Two sentences with no filler: the first defines the transformation and output contents, the second delivers the routing rule. The most decision-relevant instruction ("use this first") is placed last for emphasis without burying anything.

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?

With an output schema present, return values need not be spelled out, yet the description usefully summarizes what each fit contains, which helps the agent narrate results. Combined with full schema coverage, required-field clarity and the routing rule, the only missing piece is guidance on how recommendations are ordered or why fewer than three may be returned.

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 every field including usage, bucket, currency and gb_per_day is already documented in the schema. The description only echoes the required trio (countries, days, usage) without adding syntax or precedence rules beyond what the schema states, so it sits at the baseline.

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?

The description states a specific verb and resource ("turn a trip into up to three plan recommendations") and immediately characterizes the input shape (countries 1-5 in any language, days, data usage) and the result shape (full plan facts, total trip price, one-sentence catalogue-derived reason). It is clearly distinguishable from siblings like get_plan_details or search_esim_plans, which return details or lists rather than fitted recommendations.

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?

"Use this first whenever the user describes a trip rather than asks for a list" gives a crisp when-to-use rule plus an implicit exclusion (list requests belong elsewhere, presumably search_esim_plans). The gap is that the alternative tool is not named, so the agent must map "asks for a list" to a sibling on its own.

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