Skip to main content
Glama

Edit a route alert

update_itinerary
DestructiveIdempotent

Change a route's window, party size, tent pads or notification channels.

THE NIGHTS CANNOT BE EDITED. Their order and adjacency are validated as a whole when the route is created, so changing one in isolation could leave a trip the provider will not sell. To walk a different line, delete this route and create a new one — and say that is what you did.

Widening the window is the single most useful edit: more candidate start days is more chances to fire. Send window_start and window_end TOGETHER — one alone is merged with the stored value and may end up too short for the route's length.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tent_padsNoTent pads the party needs, for backcountry zones that sell pads rather than sites.
notify_smsNoPro tier only, needs a verified phone, and costs real money per send.
party_sizeNoPeople in the party. Where inventory is per bed or per person (huts, some backcountry zones) an opening must fit this many.
window_endNoYYYY-MM-DD.
notify_pushNoSend a push notification to the account holder's phone when something opens.
itinerary_idYesThe route alert's id, from list_my_itineraries or create_itinerary.
notify_emailNoAlso send an email when something opens (paid plans).
window_startNoYYYY-MM-DD.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
legsNo
nightsNo
park_idNo
providerNo
route_idNo
is_activeNo
park_nameNo
tent_padsNo
created_atNo
notify_smsNo
party_sizeNo
scan_countNo
window_endNo
booking_urlNo
created_viaNo
notify_pushNo
open_routesNo
notify_emailNo
window_startNo
last_checked_atNo
created_by_agentNo
last_notified_atNo
notification_countNo
distinct_zone_countNo
availabilities_foundNo
night_openings_latestNo
night_openings_recentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / itinerary_id / description
      Added value: +"The route alert's id, from list_my_itineraries or create_itinerary."
    • addedInput schema / properties / notify_email / description
      Added value: +"Also send an email when something opens (paid plans)."
    • addedInput schema / properties / notify_push / description
      Added value: +"Send a push notification to the account holder's phone when something opens."
    • addedInput schema / properties / party_size / description
      Added value: +"People in the party. Where inventory is per bed or per person (huts, some backcountry zones) an opening must fit this many."
    • addedInput schema / properties / tent_pads / description
      Added value: +"Tent pads the party needs, for backcountry zones that sell pads rather than sites."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=true, so safety and idempotency are covered. The description adds important runtime context not in annotations: that nights are validated as a whole and cannot be edited in isolation, and that window_start/window_end must be sent together or they are merged with stored values. This is valuable, but it doesn't discuss reversibility or failure modes beyond the merge behavior.

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?

The description is front-loaded with the purpose, then the key constraint (nights), then the recommended action (window edit). It's three paragraphs and mostly earns its place, though the 'say that is what you did' instruction could be seen as slightly procedural. Still efficient for the amount of useful guidance conveyed.

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 an 8-parameter mutation tool with full schema coverage, an output schema, and rich annotations, the description covers the critical behavioral nuances (night immutability, window merge behavior) without needing to explain the return shape. The only gap is that it doesn't mention the destructiveHint implications or any permission requirements for notify channels beyond what the schema says, but those are largely covered in the schema descriptions.

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 description coverage is 100%, so the baseline is 3. The description adds meaning beyond the schema by explaining the interaction between window_start and window_end (must be sent together, one alone is merged and may leave the window too short) and by characterizing widening the window as the most useful edit. That's real semantic guidance not captured in schema descriptions.

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 opens with a specific verb and resource ('Change a route's window, party size, tent pads or notification channels') and distinguishes the tool from the sibling update_alert. It also explicitly names what it cannot edit (nights), which sharpens the boundary against related tools.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use and when-not-to-use guidance: nights cannot be edited and the user should delete and recreate instead. It also recommends a workflow ('say that is what you did') and highlights the highest-value edit (widening the window), which is actionable guidance an agent can follow.

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