Skip to main content
Glama

Stato del viaggio

get_trip
Read-only

Stato del viaggio: volo, tappe, auto e, a viaggio completo, il totale a persona e booking_url. Con wait true, se il viaggio si sta ancora componendo, aspetta fino a circa 20 secondi il pezzo successivo. Solo lettura: nessuna ricerca, non consuma quotazioni.

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

Input Schema

NameRequiredDescriptionDefault
waitNotrue = se il viaggio si sta ancora componendo, aspetta fino a circa 20 secondi il pezzo successivo; false o assente = risponde subito.
quote_idYesIl quote_id restituito da start_trip.

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

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnlyHint/openWorldHint/destructiveHint, yet the description adds real behavior beyond them: the ~20-second blocking wait with wait=true, and 'non consuma quotazioni' — a cost/billing-relevant guarantee an agent could not derive from structure alone. It does not cover failure behavior for an unknown quote_id.

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?

Three front-loaded sentences, each carrying content: returns first, then the wait semantics, then the read-only/no-quote-consumption constraint. Minor repetition of the wait behaviour already in the schema description keeps it from a 5.

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 spelled out, yet the description still previews them helpfully for a status-polling tool. Complete enough to invoke correctly; only error/not-found behavior is unaddressed.

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 100% and both parameters are documented in the schema, including the same wait semantics, so the description only restates rather than extends them. Baseline 3 applies; no extra detail such as timeout behaviour on expiry is added.

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+resource ('Stato del viaggio') and enumerates the returned content: volo, tappe, auto, and on completion totale a persona and booking_url. It also separates itself from retrieval siblings with 'nessuna ricerca', though it never names start_trip (only the schema does) as the counterpart that produces the quote_id.

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 description implies use ('a viaggio completo' you get the total, wait=true when the trip is still being assembled) and excludes search-style usage. But it does not state explicitly when to poll versus call start_trip or find_ready_itineraries, so routing is left partly to inference from the schema's 'quote_id restituito da start_trip'.

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