Skip to main content
Glama

Update Tracked Flight Route

update_route
Idempotent

Partially update an existing tracked flight route belonging to the authenticated user. Only the fields supplied in the request are modified; omitted fields remain unchanged (pass null to clear optional fields such as return_date, max_stops, fallback_target_price, or extra_legs). Usage guidelines: call list_routes first to obtain the exact route UUID, and confirm major changes (such as dates or airports) with the user. Returns { route } containing the updated route record. Failure modes: returns an error if id is missing or malformed, if no updatable fields are provided, if the route does not exist or belongs to another user, or if validation fails.

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": {
      "id": "<id>"
    },
    "name": "update_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUUID of the tracked route to update, obtained from list_routes (e.g. '550e8400-e29b-41d4-a716-446655440000').
legsNoUpdated ordered flight legs for multi-city/open-jaw mode, or null to clear
nameNoUpdated human-readable trip label, e.g. 'Toronto to Tokyo (Spring)'
originNoUpdated origin 3-letter IATA airport code(s), comma-separated, e.g. 'YYZ'
max_stopsNoUpdated max stops filter (0 = Nonstop, 1 = Max 1 stop, 2 = Max 2 stops, null = Any)
trip_daysNoUpdated round-trip duration in days for flexible range, or null for one-way
extra_legsNoUpdated train, bus, ferry, or regional flight legs, or null to clear
depart_dateNoUpdated departure date or start of flexible window in YYYY-MM-DD format
destinationNoUpdated destination 3-letter IATA airport code(s), comma-separated, e.g. 'HND,NRT'
return_dateNoUpdated return date in YYYY-MM-DD format, or null to switch to one-way
checked_bagsNoUpdated default checked bags for both directions (0-2)
carry_on_bagsNoUpdated carry-on bags included in Google Flights search (0-2)
depart_date_endNoUpdated end of flexible departure window in YYYY-MM-DD format, or null to disable flexible range
checked_bags_returnNoOptional return-only checked bags override (0-2, or null to inherit checked_bags)
checked_bags_outboundNoOptional outbound-only checked bags override (0-2, or null to inherit checked_bags)
fallback_target_priceNoUpdated manual max price alert threshold in the user's currency, or null to use automatic targets

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), and the description adds substantial context beyond them: omitted fields are left untouched, null clears optional fields, and specific failure cases are enumerated. It stops short of explaining side effects like how changing fallback_target_price affects existing alerts.

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 the core action and partial-update rule, then prerequisites, then return shape, then failure modes — a sensible order. The parenthetical listing of clearable fields is slightly dense but earns its space by consolidating scattered schema notes.

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 16-parameter mutation with no output schema, the description covers the return shape ({ route }), the update contract, the UUID prerequisite, and error conditions. It is nearly complete, missing only deeper detail on downstream effects of certain fields (e.g. price alert thresholds).

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 100%, so the per-field semantics are already documented. The description's added value is the general omitted-vs-null rule plus a curated list of clearable fields (return_date, max_stops, fallback_target_price, extra_legs), which the schema documents only field-by-field rather than as a rule.

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 ('Partially update an existing tracked flight route') and adds a scope qualifier ('belonging to the authenticated user'). The word 'partially' immediately distinguishes it from a full-replace operation and from the create/delete siblings.

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?

It gives an explicit precondition ('call list_routes first to obtain the exact route UUID') and a confirmation rule for major changes such as dates or airports. It does not discuss when to use create_route or delete_route instead, but the failure modes implicitly bound the correct call context.

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.