Skip to main content
Glama

Got a Plan Trip Planner

Change a trip

update_trip
Destructive

Changes a saved trip. Fields left out stay as they are; "stops", when given, replaces the whole route. Flights chosen for legs that no longer exist stay saved but are not shown; a hotel chosen for a stop whose dates moved shows as needing a new choice. A change that would move a flight the traveller marked booked is refused (mark_leg with booked false first, once the booking is changed); booked hotels and tours that leave the route are named in the reply.

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": {
      "trip_id": "<trip_id>"
    },
    "name": "update_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
dietNoHow the traveller eats ("vegetarian", "halal", "gluten-free"); an empty list clears it. Places to eat are looked for with it
nameNo
startNo
stopsNo
styleNoWhat the trip is: "base" to stay in one place, "around" to travel around; "none" clears it. Set it only when the traveller said so
adultsNo
budgetNoWhat the whole trip may cost, all travellers, in budget_currency; 0 for none
trip_idYes
childrenNoThe ages of the children travelling, one each; an empty list for none
interestsNoWhat the traveller wants to do on this trip, in their words ("temples", "hiking", "street food"); an empty list clears them. Local picks are looked for from these
keep_routeNoWith stops: keep the route being replaced as a route option ("Your previous route"), so the traveller can go back to it with choose_route
route_doneNoThe route is settled as it is, for example one city for a weekend: the planner stops asking for route options
self_driveNoTrue when the traveller drives themselves (own or rental car): the trip's road legs are drives they make, with a drive time, and nothing to book
home_airportNo
budget_currencyNoThe currency the budget is in, such as USD or GBP; the budget's current one (euros for a new budget) when left out

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description goes well beyond that by disclosing what is preserved (flights on removed legs stay saved but hidden), what degrades (hotels on moved dates show as needing a new choice), what is refused (moving a booked flight), and what the reply reports (booked hotels and tours leaving the route). This is unusually rich side-effect disclosure for a mutation tool.

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?

Four front-loaded sentences with no filler; the partial-update rule and the stops-replacement rule come first. The parenthetical about mark_leg and the booked-flight refusal is densely packed and takes a re-read, which keeps it from a 5.

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?

For a 15-parameter destructive tool with no output schema, the description covers mutation semantics, side effects, refusal conditions, and partially the response contents. It omits any note on permissions or whether changes are reversible, which would complete the picture.

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 60%, so the schema already documents many fields (diet, style, budget, children, interests, keep_route, route_done, self_drive). The description adds genuinely new meaning the schema does not encode: that stops replaces the entire route rather than merging, and the downstream consequences for flights and stays. Undocumented params (name, start, adults, trip_id, lon) remain thin, but they are largely self-evident.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Changes a saved trip" gives a specific verb and resource that clearly separates it from create_trip, delete_trip and plan_new_trip. It stops short of naming a sibling to contrast against, but the mutation scope is unmistakable.

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?

The description states the partial-update rule (fields left out stay as they are) and the key alternative behavior for stops (full replacement), plus a concrete cross-tool prerequisite: mark_leg with booked false first before moving a booked flight. It does not cover when to prefer choose_route / choose_stay instead of editing stops directly, so it falls 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.