Skip to main content
Glama

Set trip preferences

set_preferences
Destructive

Saves the preferences the traveller has stated about a trip. A field not sent is left as it is. A list that is sent replaces the saved list, so an anchor or item left out of it is removed. Without a trip_id it creates a trip, which needs a destination. New dates on a trip with a plan move or cut the plan; earlier versions are kept.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_preferences"
  }
}

Input Schema

NameRequiredDescriptionDefault
paceNo
notesNoReplaces the whole list; [] clears it.
partyNo
avoidsNoReplaces the whole list; [] clears it.
budgetNo
originNo
anchorsNoFlights, transport, stays and events the traveller named, in local time with no timezone. The list replaces the saved one: a saved anchor is kept only when sent back with its id, and [] clears it. kind accommodation is a hotel: place holds the stay's name and note the hotel. kind transport covers a speedboat, ferry or car to or from an airport. status considered means not booked; commitment flexible means its time may change. An arriving flight has to_place the first stay, end_date and end_time the landing, and no start_time. A flight home has place the last stay, start_date and start_time the departure, and no to_place.
dietaryNo
trip_idNo
end_dateNoThe day the traveller leaves.
must_dosNoReplaces the whole list; [] clears it.
party_noteNo
prioritiesNoReplaces the whole list; [] clears it.
start_dateNo
travellersNo
destinationNo
nationalityNoTwo-letter code of the passport held.
accessibilityNo
budget_detailNo
based_on_versionNo
nationality_declinedNoThe traveller would rather not say.

Output Schema

NameRequiredDescriptionDefault
tripNo
changedYes
removedYes
acceptedNo
next_actionNo
preferencesNo
couldnt_checkNo
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.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, and the description earns credit for specifying exactly what is destroyed: a sent list replaces the saved list so omitted items are removed, while unsent scalar fields are preserved. It also discloses the side effect that new dates move or cut an existing plan, and that earlier versions are kept, which is precisely the kind of beyond-annotation context the rubric rewards.

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?

Five short sentences, front-loaded with the core action and ordered from general save semantics to the creation and date-changing edge cases. Every sentence carries information, though the final sentence compresses two distinct behaviors (plan movement and version retention) into one clause.

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 a 21-parameter create-or-update tool, the description covers the highest-risk semantics: partial-update behavior, list replacement, the creation path, and date-induced plan changes. With annotations covering the safety profile and an output schema covering return values, the remaining gaps are per-parameter meanings rather than behavioral blind spots.

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 description coverage is low (38%) across 21 parameters, and the description compensates only for the trickiest ones: trip_id, destination, start/end dates, and the list-replacement semantics of anchors and list fields. Most parameters (pace, party, budget, dietary, travellers, nationality) get no semantic gloss at all, leaving the schema to carry them.

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?

The description opens with a specific verb and resource ("Saves the preferences the traveller has stated about a trip") and adds the important dual behavior that a missing trip_id creates a trip. It does not name a sibling to distinguish from, so an agent must infer how this differs from write_new_version or edit_itinerary, which keeps it below a 5.

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?

Conditional usage is implied rather than spelled out: it tells the agent a missing trip_id creates a trip (needing a destination) and that new dates on a planned trip move or cut the plan. It never states when to choose this over the sibling mutation tools, so the routing guidance is incomplete.

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