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.

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": {
      "itinerary_id": "<itinerary_id>"
    },
    "name": "update_itinerary"
  }
}

Input 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. An alert always keeps at least one channel, as in the app: with push, email and SMS all off and no webhook_url, push stays ON and the response says so in notifications_note. A webhook_url counts as a channel, so an alert can deliver only to your endpoint with every human channel off.
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

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. Changed1 schema field changed
    • changedInput schema / properties / notify_push / description
      Previous value: -"Send a push notification to the account holder's phone when something opens."New value: +"Send a push notification to the account holder's phone when something opens. An alert always keeps at least one channel, as in the app: with push, email and SMS all off and no webhook_url, push stays ON and the response says so in notifications_note. A webhook_url counts as a channel, so an alert can deliver only to your endpoint with every human channel off."
  2. Changed27 schema fields changed
    • changedOutput schema / properties / availabilities_found / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedOutput schema / properties / booking_url / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / created_at / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / created_by_agent / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / created_via / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / distinct_zone_count / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedOutput schema / properties / is_active / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / last_checked_at / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / last_notified_at / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / legs / type
      Previous value: -"array"New value: +[
      +  "array",
      +  "null"
      +]
    • changedOutput schema / properties / night_openings_latest / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / night_openings_recent / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedOutput schema / properties / nights / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedOutput schema / properties / notification_count / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedOutput schema / properties / notify_email / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / notify_push / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / notify_sms / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • changedOutput schema / properties / open_routes / type
      Previous value: -"array"New value: +[
      +  "array",
      +  "null"
      +]
    • changedOutput schema / properties / park_id / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / park_name / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / party_size / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedOutput schema / properties / provider / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / route_id / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / scan_count / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedOutput schema / properties / tent_pads / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedOutput schema / properties / window_end / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / window_start / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  3. 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."
  4. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is supplied. The description adds genuinely non-structured behavior: nights are immutable because adjacency is validated as a whole, deletion-and-recreation is the sanctioned workaround, and notification edits can silently re-enable push. It does not explain why the tool is flagged destructive (e.g. losing stored windows or channels when rewriting).

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 editable fields, then the hard constraint in caps, then the highest-value tip. Dense but every paragraph carries a distinct rule; the 'say that is what you did' aside is slightly editorial but conveys a disclosure expectation.

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?

With an output schema present and full schema coverage, the description focuses correctly on the constraints that are not machine-readable: immutable nights, paired window params, and the at-least-one-channel invariant. The main remaining gap is disambiguation from update_alert and any statement of what a destructive edit can cost.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description still adds cross-parameter meaning the schema cannot express: window_start and window_end must be sent together, and a lone value is merged with the stored date and can end up too short for the route's length. That is exactly the failure mode an agent would otherwise hit.

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?

Opens with a specific verb plus the exact editable fields ('Change a route's window, party size, tent pads or notification channels'), so the agent knows precisely what this mutates. It loses a point because the title/description call it a 'route alert' while the name is update_itinerary, and nothing distinguishes it from the sibling update_alert.

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 explicit when-to-use guidance ('Widening the window is the single most useful edit') and an explicit when-not-to-use plus alternative (nights cannot be edited; delete and recreate instead, and disclose it). No guidance on choosing between this tool and the similarly named update_alert sibling.

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