Skip to main content
Glama

Find other choices for a trip item

find_trip_item_alternatives
Read-onlyIdempotent

Lists the other choices for one priced line of a planned trip's option (a stay, a flight, a transfer or an activity), numbered, each with its price and what it does to the whole trip's Safe Trip Total and budget. Use it when the traveller wants a different hotel, flight, transfer or activity. The trip id, option id and line id come from plan_trip or get_trip. Read only: the trip is not changed. It searches the travel providers again, so choices and prices can differ from one call to the next; the numbers can be used with swap_trip_item for 30 minutes.

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": {
      "tripId": "<tripId>",
      "optionId": "<optionId>",
      "lineId": "<lineId>"
    },
    "name": "find_trip_item_alternatives"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineIdYesThe line id from plan_trip or get_trip, e.g. 'N-STAY-1'.
tripIdYesThe trip id that plan_trip returned.
optionIdYesThe option id from plan_trip or get_trip.

Output Schema

NameRequiredDescriptionDefault
choicesYes
currentYes
priceLabelsYesWhat the price labels mean; to be shown with the prices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations it discloses non-obvious behavior: it re-queries the travel providers, so choices and prices may differ between calls, and the returned indices expire after 30 minutes for use with swap_trip_item. It also previews the payload (numbered alternatives, each with price and impact on the Safe Trip Total and budget) and restates the no-mutation guarantee. That is exactly the kind of context annotations cannot carry.

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?

Information is front-loaded: what it returns, then when to use it, then provenance of inputs, then operational caveats. Sentences are long and clause-heavy, but each carries distinct content; the re-search caveat and the 30-minute window are the only places it verges on over-explaining.

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 three-id lookup with an output schema, annotations, and full schema coverage, the description covers the remaining gaps an agent needs: the read-only guarantee, result volatility, the validity window, and what the follow-up tool is. Nothing material is missing.

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 100% and each parameter already documents its origin in plan_trip or get_trip, so the description largely repeats it. The one genuine addition is the conceptual hierarchy — a line belongs to an option of a trip — which helps an agent pick the right lineId, but no format, ordering, or edge-case guidance is added.

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?

Opens with a specific verb and resource: 'Lists the other choices for one priced line of a planned trip's option,' then enumerates the entity kinds (stay, flight, transfer, activity) and what each result carries. This is clearly distinguishable from swap_trip_item (which applies a change) and from get_trip/plan_trip (which supply the ids).

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 an explicit trigger ('Use it when the traveller wants a different hotel, flight, transfer or activity'), states where the three ids come from, and names the downstream tool and its time window ('the numbers can be used with swap_trip_item for 30 minutes'). It stops short of stating a when-not condition or contrasting explicitly with browsing options inside plan_trip, so it is strong but not exhaustive.

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