Skip to main content
Glama

Edit parts of the itinerary

edit_itinerary
Destructive

Applies targeted edits (start_date, stays, transfers, days, stops) to the current version without rewriting the whole plan, and returns the updated plan and next_action.

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>",
      "based_on_version": "<based_on_version>",
      "change_summary": "<change_summary>",
      "edits": "<edits>"
    },
    "name": "edit_itinerary"
  }
}

Input Schema

NameRequiredDescriptionDefault
editsYes
trip_idYes
change_summaryYes
based_on_versionYes

Output Schema

NameRequiredDescriptionDefault
newYes
planYes
tripNo
fixedYes
changedYes
removedYes
acceptedNo
blockersYes
more_newYes
warningsYes
read_backYes
more_fixedYes
next_actionNo
preferencesNo
couldnt_readYes
couldnt_checkNo
more_blockersYes
more_warningsYes
provenance_rulesNoFacts are sourced, unverified, stale or not_checked. Prices are live, estimate or none; hotel and flight prices are never estimated.
couldnt_check_moreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds that edits are 'targeted' and that the response includes the updated plan and next_action, but it says nothing about the versioning contract implied by the required based_on_version parameter (optimistic concurrency failures, version creation) or that removals are irreversible within the current version.

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?

A single dense sentence with the verb and scope front-loaded and no filler. The parenthetical edit list is compact, though packing all edit families into one clause limits how much it can say about each.

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?

The description is a single sentence against a tool with eight polymorphic edit ops, four required top-level parameters, and destructive semantics. An output schema exists so return values need not be explained, but the meaning of based_on_version, the purpose of change_summary, and the ability to batch multiple ops in one call are all absent, which is a real gap for a high-complexity mutation tool.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry parameter meaning and only partially does: it names start_date, stays, transfers, days, and stops, loosely mapping to the op discriminator. It leaves the three other required parameters (trip_id, based_on_version, change_summary) completely unexplained, and does not convey that edits is a mixed-op array capped at 25 items.

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 specific verb and resource: 'Applies targeted edits ... to the current version without rewriting the whole plan,' and enumerates the edit families. It is clearly distinguishable from read-oriented siblings, though it never names write_new_version or restore_version, which are the closest alternatives.

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 phrase 'without rewriting the whole plan' implies this is the surgical-edit path rather than a full rewrite, but no sibling is named and no when-not guidance is given. The agent must infer that write_new_version handles wholesale regeneration.

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