Skip to main content
Glama

Got a Plan Trip Planner

Change a trip's flights

set_trip_fare
Destructive

Moves a trip to another return fare saved in the new-trip draft: the trip then starts the day that flight lands and ends the day the flight home leaves. Nights are added to the longest stay, or taken from the longest stays; an arrival or departure airport that isn't on the route joins it as a stop with no nights. The fare replaces the trip's outbound and home flights.

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>",
      "deal_id": "<deal_id>"
    },
    "name": "set_trip_fare"
  }
}

Input Schema

NameRequiredDescriptionDefault
deal_idYesDeal id from the draft
trip_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Well beyond the annotations (which only say destructive and not read-only), the description discloses the concrete consequences: trip dates rebase to the new flight's landing and return departure, nights are added to or removed from the longest stays, unknown airports become zero-night stops, and the previous outbound/home flights are replaced. That is exactly the impact information an agent needs before invoking a destructive mutation.

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 sentences, front-loaded with the core action, then consequences in decreasing order of importance. Dense but each sentence carries distinct information; the second sentence is long but its detail is materially useful.

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 two-parameter destructive mutation with no output schema and no annotations beyond safety hints, the description covers the observable effects on the trip thoroughly. Not covered: failure modes when the deal id is absent or invalid, and whether the change is reversible — modest gaps given the tool's complexity.

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 50% — deal_id is documented as 'Deal id from the draft' while trip_id is undocumented. The description compensates partially by tying the operation to a draft fare, which clarifies what deal_id refers to, but it never characterizes trip_id or the relationship between the two ids.

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?

States a concrete verb and resource: moves a trip onto another return fare saved in the new-trip draft, then spells out the resulting flight replacement. It is clearly distinguishable from schedule-editing siblings like set_nights, though it never names those siblings explicitly.

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

Usage Guidelines3/5

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

The prerequisite is implied by 'another return fare saved in the new-trip draft', which tells the agent a draft fare must already exist. There is no explicit when-to-use/when-not guidance and no mention of alternatives such as start_trip_from_flight or choose_flight for trips that have no fare yet.

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.