Skip to main content
Glama

Cambia una tappa del viaggio

change_trip_stop

Cerca un'altra località per una tappa senza hotel adatti (no_availability, no_suitable_hotel, error) con le stesse date; con timeout o error puoi ripetere la stessa località. Solo dopo il sì del cliente: volo, altre tappe e auto restano. Al massimo 3 volte per tappa (changes_left).

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": {
      "quote_id": "<quote_id>",
      "stop_index": "<stop_index>",
      "stop": "<stop>"
    },
    "name": "change_trip_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
stopYes
quote_idYesIl quote_id restituito da start_trip.
stop_indexYesLa tappa da cambiare (da 0, come stops[].stop_index).

Output Schema

NameRequiredDescriptionDefault
carNo
errorNo
stopsNo
flightNo
statusYessearching (chiama get_trip con wait true), complete, needs_review (una tappa da rivedere col cliente), error.
currencyNo
quote_idYes
next_stepYesCosa fare adesso.
travelersNo
link_untilNo
per_personNoSolo con complete: il totale del viaggio a persona, al centesimo, come sul sito (1224.5 = € 1.224,50). L'unico prezzo da dire: scrivilo come per_person_text.
price_noteNo
booking_urlNoSolo con complete: il link da mostrare così com'è.
retry_afterNo
review_reasonNoCon needs_review: airport_substitute = si aspetta il sì del cliente all'aeroporto sostituto (nessun totale né link).
per_person_textNoSolo con complete: per_person già scritto come sul sito (per esempio «€ 1.224,50»): da dire così com'è.
airport_substituteNo
taxes_at_property_per_personNoSolo con complete: tasse da pagare in hotel, a persona, non comprese.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), it discloses that only the stop is replaced while the flight, other stops and the car remain, requires prior customer consent, and caps attempts. It does not describe permission/auth requirements or exactly what a replaced stop returns, but the mutation scope is well covered.

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?

Compact and front-loaded: the trigger condition comes first, then retry rules, then the consent prerequisite, then the attempt cap. The compressed, punctuation-heavy phrasing takes a moment to parse but no sentence is wasted.

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?

An output schema exists, so return values need not be explained. The definition covers preconditions, retry policy, what is preserved and the attempt limit; the only gap is that the quote_id provenance and coordinate conventions live solely in the schema.

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 67% and the schema itself documents label, lat/lng (locality center, non-zero) and country. The description adds only that the search keeps the same dates and that stop_index maps to the untouchable stop; it adds little meaning beyond the structured fields, so the baseline 3 fits.

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 states a specific verb and resource ('Cerca un'altra località per una tappa'), scoping it to stops without suitable hotels and enumerating the triggering statuses (no_availability, no_suitable_hotel, error). It is clearly distinguishable from siblings like get_trip or confirm_trip_airport, though no sibling is named as an explicit alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use: only for stops that failed with no_availability, no_suitable_hotel or error. It also states when a retry on the same locality is legitimate (timeout/error), the prerequisite of the customer's confirmation, and the hard limit of 3 attempts per stop via changes_left.

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