Skip to main content
Glama

Conferma l'aeroporto del viaggio

confirm_trip_airport

Il sì (accept true) o il no (false) del cliente all'aeroporto diverso da quello chiesto, quando get_trip dà status needs_review e review_reason airport_substitute. Il sì chiude il viaggio senza nuove ricerche; il no lo chiude con errore airport_declined.

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

Input Schema

NameRequiredDescriptionDefault
acceptYestrue = il cliente accetta l'aeroporto proposto, false = lo rifiuta.
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

A4/5.0
Behavior4/5

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

Well beyond the annotations, the description discloses the terminal outcome of each branch: accept closes the trip without new searches, reject closes it with the airport_declined error. That is exactly the consequence information an agent needs before mutating state. It does not mention reversibility or permissions, but the branch consequences are the critical disclosure.

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?

Two sentences with no filler; the precondition comes first and the outcome mapping second. The first sentence is densely packed with clauses, but every clause carries necessary condition information, so nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter state-changing tool with an output schema, the description supplies the precondition, the per-branch consequence, and the error code, leaving nothing an agent needs missing before calling it. Return values are covered by the output schema, so their absence from the description is correct.

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%, so both parameters are already documented, including true = accepts proposed airport and false = rejects. The description adds the downstream effect of each value (closure vs. error closure), which is useful but overlaps heavily with what the schema and behavioral section already convey. Baseline 3 is appropriate.

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 identifies the exact action: recording the customer's accept/reject (accept true/false) of a substitute airport. Combined with the tool name, the purpose is unambiguous, and it explicitly names get_trip as the upstream trigger, distinguishing it from siblings like change_trip_stop. It is phrased as a noun clause rather than a direct verb+resource statement, which slightly weakens front-loading.

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

Usage Guidelines4/5

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

The trigger condition is precise: use only when get_trip returns status needs_review with review_reason airport_substitute. That condition effectively also specifies when not to use it. No alternative tool is named, but none appears to compete for this action, so the guidance is strong without being fully 5-level explicit about alternatives.

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