Skip to main content
Glama

Componi il viaggio

start_trip

Solo per residenti in Italia con partenza dall'Italia: se il cliente dice il contrario, spiegalo con garbo e non avviare il viaggio; la residenza non si chiede. Compone sul server il viaggio su misura: una sola ricerca per fornitore (volo, hotel di ogni tappa, auto se chiesta). Risponde subito con quote_id e status searching; il resto si legge con get_trip. Non prenota e non addebita nulla: il cliente prenota e paga dal booking_url. Conta come una quotazione: al massimo 3 per conversazione. Preferenze del cliente in preferences (flight, hotel, car), solo se le ha dette lui. Senza flight (e senza car) è un viaggio di soli hotel.

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": {
      "country": "<country>",
      "origin": "<origin>",
      "travelers": "<travelers>",
      "start_date": "<start_date>",
      "stops": "<stops>"
    },
    "name": "start_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
carNotrue = auto dall'aeroporto di arrivo a quello di ritorno; solo con transport "flight". Mettilo quando le tappe sono lontane fra loro o fuori dalle città.
stopsYesTappe in ordine di viaggio, da 1 a 10; al massimo 60 notti in tutto. Ogni tappa ha un hotel, cercato vicino alle coordinate: entro 3 km in città, entro 10 km in campagna, con un giudizio degli ospiti di almeno 7 su 10.
flightNoFacoltativo: senza flight il viaggio è di soli hotel (il cliente arriva per conto suo, niente auto). Il ritorno arriva a from.
originYesLuogo di partenza del viaggiatore (la sua città).
regionNoFacoltativo ma da compilare quando il viaggio sta in una zona precisa: regione o zona del paese, solo il nome (per esempio Highlands, Toscana).
countryYesPaese principale del viaggio, quello con più notti (per esempio Portogallo). Un viaggio su più paesi va bene: le tappe in un altro paese lo dicono in stops[].country.
travelersYesAl massimo 9 viaggiatori in totale, adulti e bambini.
start_dateYesData di partenza AAAA-MM-GG, da domani a 330 giorni da oggi compresi: è il check-in della prima tappa. Quella scritta nella proposta del giro (regola delle date); la data dell'esempio non va copiata.
preferencesNoFacoltativo: solo le preferenze dette dal cliente, mai inventate. Per ogni voce il server sceglie la più economica che le rispetta tutte; se nessuna le rispetta, la più economica, con una nota in preference_notes. I booleani valgono solo con true.
travel_stylesNoFacoltativo: i tipi di viaggio, al massimo 3, fra i valori elencati nella descrizione dello strumento (grandi-classici, fuori-rotta, on-the-road, natura, citta-e-cultura, mare-e-relax, enogastronomia, slow, famiglia, avventura); gli altri si ignorano.
requested_daysNoLa durata in GIORNI detta dal cliente o proposta da te (7 giorni = 6 notti: andata il giorno 1, ritorno il giorno 7). Le notti delle tappe devono essere esattamente questo numero meno uno, altrimenti il server rifiuta. Usa questo campo oppure requested_nights.
requested_nightsNoLa durata in NOTTI, se il cliente o tu l'avete detta in notti («una settimana» = 7 notti, «un weekend lungo» = le 2 o 3 notti proposte). Le notti delle tappe devono essere esattamente queste, altrimenti il server rifiuta. Usa questo campo oppure requested_days.

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.7/5.0
Behavior5/5

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

Annotations only declare not-read-only, not-destructive, open-world; the description goes far beyond by stating nothing is booked or charged, the client pays via booking_url, the call returns immediately with quote_id and status 'searching', and the call is counted against a per-conversation quote cap. Those are the operational facts an agent needs before invoking it.

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 hard eligibility gate first, then what the tool does, then the return contract, then the quota. Every sentence carries information, though the prose is a dense comma-spliced run-on that could be broken into bullets for easier scanning.

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 12-parameter nested tool with an output schema, the description covers the decision-relevant surface: eligibility, mutation-free behavior, immediate vs deferred results, quota, and preference provenance. The only omission is the travel_styles vocabulary, which the schema itself lists.

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 and the schema already carries field-level meaning. The description adds cross-field rules the schema states less prominently: no flight means hotels-only with no car, and preferences must reflect only what the client said rather than being invented. It does not enumerate the travel_styles values even though the schema points back to 'the tool description' for them — a small gap.

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 and resource ('Compone sul server il viaggio su misura'), plus the concrete mechanics: one search per supplier (flight, hotel per stop, car if requested). It also separates itself from the sibling that reads the result ('il resto si legge con get_trip'), so the agent can tell the two apart 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 Guidelines5/5

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

Explicit eligibility rule (Italian residents departing from Italy), explicit handling when the client contradicts it (explain politely, do not start, do not ask about residency), an explicit quota ('al massimo 3 per conversazione'), and explicit routing to get_trip for the results. Preferences are gated on the client having actually stated them, and the no-flight case is called out as hotels-only.

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