Skip to main content
Glama

Scrivi i testi del viaggio

write_trip_texts

Salva i testi della pagina pubblica del viaggio: title, summary, description e days (un giorno per ogni notte chiesta, più uno). Solo a viaggio completo. Le regole di scrittura sono nelle istruzioni del server; sotto le soglie risponde con i motivi da correggere.

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>",
      "title": "<title>",
      "summary": "<summary>",
      "description": "<description>",
      "days": "<days>"
    },
    "name": "write_trip_texts"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesUn elemento per giorno di viaggio: esattamente somma delle nights + 1 (5 notti = 6 giorni).
titleYesTitolo del viaggio, in italiano: evocativo, per una pagina pubblica, senza nomi di persone né occasioni personali. Linguaggio naturale: mai termini tecnici come open-jaw, multi-city, IATA, PNR o codici aeroporto («arrivo a Lisbona, ripartenza da Porto»).
summaryYesUna frase in italiano che invogli a leggere, in seconda persona. Linguaggio naturale: mai termini tecnici come open-jaw, multi-city, IATA, PNR o codici aeroporto («arrivo a Lisbona, ripartenza da Porto»).
quote_idYesIl quote_id restituito da start_trip.
descriptionYesRacconto del viaggio in italiano, almeno 800 caratteri: in seconda persona, frasi brevi, dettagli concreti (luoghi, esperienze, sapori, consigli pratici), mai un elenco. Pagina pubblica: niente nomi, occasioni personali o riferimenti a chi viaggia. Linguaggio naturale: mai termini tecnici come open-jaw, multi-city, IATA, PNR o codici aeroporto («arrivo a Lisbona, ripartenza da Porto»).

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 only declare the safe-write profile (readOnly=false, destructive=false, openWorld=false). The description adds genuine behavioral context: writing rules live in the server instructions, and below the thresholds the call returns the reasons to correct rather than silently succeeding. It does not state whether an existing page is overwritten or how publishing is triggered, which keeps it from a 5.

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 tight sentences, front-loaded with the write target, followed by the precondition and the failure behavior. Nothing is redundant, though "Le regole di scrittura sono nelle istruzioni del server" is a pointer that could be slightly sharper about what it implies for the caller.

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, and the description covers the write scope, the precondition, and validation-failure feedback. Given a 5-param nested-array tool, the remaining gap is overwrite/idempotency semantics — an agent cannot tell whether re-calling replaces prior texts.

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 every parameter carries a detailed description, including the days/nights relation, so the schema already does the heavy lifting. The description only re-lists the four field names and the day count, adding no syntax or constraint detail beyond what is structured — the baseline 3.

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?

"Salva i testi della pagina pubblica del viaggio" names a specific verb and resource and enumerates exactly which fields are written (title, summary, description, days), plus the days = nights + 1 rule. It is clearly distinguishable from start_trip or change_trip_stop by what it persists, though it never names a sibling directly.

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?

"Solo a viaggio completo" gives a real precondition for invoking it, which implies it should be called after the itinerary is settled rather than mid-edit. There is no explicit statement of what to do if the trip is incomplete, nor any pointer to an alternative tool, so guidance remains implied rather than directive.

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