Skip to main content
Glama

Update a trip

update_trip
Destructive

Change a trip: title, dates, status, notes, cover photo, travellers (replaces the list). Also: merge_from_trip_id folds another trip into this one and deletes it (irreversible); cancellations settles items flagged as possibly cancelled from a forwarded email (remove deletes them, keep clears the flag); refresh_places re-works out the places visited and the drives between them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNoNotes.
titleNoTitle.
statusNopast, planning, booked or active.
trip_idYesThe trip id.
end_dateNoDate, YYYY-MM-DD.
budget_rawNoA budget with currency, e.g. "AUD 8000"; null clears it.
start_dateNoDate, YYYY-MM-DD.
travellersNoWho travelled, by name. New names are added to the account's people.
cancellationsNoSettle items a forwarded email flagged as possibly cancelled.
cover_photo_idNoA photo id to use as the cover, or "" to clear it.
refresh_placesNoRe-derive places and infer drives.
merge_from_trip_idNoA trip to merge into this one; it is deleted afterwards.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
mergedNoThe merge, when one was asked for.
trip_idYesThe trip.
updatedNoFields changed.
drives_addedNoDrives inferred.
places_addedNoPlaces worked out.
cancellations_keptNoFlagged items kept.
cancellations_removedNoFlagged items deleted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / budget_raw
      Added value: +{
      +  "description": "A budget with currency, e.g. \"AUD 8000\"; null clears it.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation by naming which operations are destructive and how: merge is flagged 'irreversible' and deletes the source trip, travellers 'replaces the list', cancellations 'remove deletes them', and cover_photo/notes clearing are implied. This is exactly the kind of consequence disclosure an agent needs before a write.

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-loads the core field-update purpose in the first clause, then groups the complex modes after a 'Also:' marker. Dense and semicolon-heavy, but every clause carries distinct operational meaning; no filler sentences.

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

Completeness5/5

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

For a 12-parameter mutation tool with nested objects and three destructive sub-modes, the description covers the risky paths and their consequences, and the presence of an output schema means return values need not be explained here. Nothing critical to correct invocation is missing.

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 baseline is 3, but the description adds real meaning beyond the schema field docs: it explains merge semantics (folds in + deletes), that travellers replaces rather than appends, and the keep/remove distinction for cancellations. Not exhaustive on all 12 params, but materially above baseline.

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?

States a specific verb (change/update) and resource (a trip), then enumerates exactly which fields it mutates and the three special modes it also supports. An agent can distinguish this from get_trip (read) and delete_items (delete) without opening a schema.

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 clear conditions for the non-obvious modes: merge_from_trip_id folds a trip in and deletes it, cancellations settles email-flagged items, refresh_places re-derives places/drives. It does not explicitly name alternatives (e.g. 'use get_trip to read first' or 'use delete_items for items'), so it stops short of full when/when-not routing.

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.