Skip to main content
Glama

Save a new version of the itinerary

write_new_version
Destructive

Saves a revised plan as the next version of a trip and checks it. The text replaces the whole plan. Earlier versions are kept. Flights, airport transfers and hotel names in the text are not saved as bookings.

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>",
      "plan_text": "<plan_text>"
    },
    "name": "write_new_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
trip_idYes
plan_textYesThe whole plan as text: every day, where the traveller sleeps and how they move between places. Pass it as written, without summarising, rewording or leaving anything out. At most 20,000 characters.
start_dateNoThe date of the first day, when the traveller has stated it. Dates written in the plan text take precedence.
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

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, and the description usefully softens that by stating "Earlier versions are kept," which tells the agent the prior state is recoverable. It also discloses a non-obvious side effect: flights, airport transfers and hotel names in the text are not persisted as bookings, plus that the content is validated after saving. The only gap is that "checks it" is never explained.

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?

Four short sentences, front-loaded with the core action and immediately followed by the replacement semantics and the version-retention guarantee. No filler, though "and checks it" is a vague clause that would be better either expanded or dropped.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the destructive annotation is offset by the version-retention note. What remains missing is meaningful for a destructive write with a required based_on_version: whether a stale version is rejected, what validation runs, and what change_summary is for.

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 only 40%: plan_text is well documented in the schema, but trip_id, based_on_version and change_summary have no descriptions anywhere. The description compensates partly by defining plan_text as a whole-plan replacement and by warning that booking-like content in the text is not saved, but it leaves based_on_version (the version-conflict anchor) and change_summary unexplained.

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?

"Saves a revised plan as the next version of a trip" gives a specific verb and resource, and "the text replaces the whole plan" clarifies the scope of the write. It does not name edit_itinerary or restore_version, so the agent must infer the distinction from the sibling list rather than the description.

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 "The text replaces the whole plan" implicitly signals that this is a full-rewrite operation rather than an incremental edit, which hints at when to prefer it over an edit tool. However, there is no explicit when-to-use or when-not-to-use statement and no named alternative, so the agent must infer the boundary.

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