Skip to main content
Glama
Flight Search MCP
by sickn33

calculate_trip_cost

Read-only

Calculates total trip cost by summing flight, stay, transfer, seat, and bag quotes for the full party in one currency, leaving unpriced components unknown.

Instructions

Sum full-party quotes in one currency for flights, stays, transfers, seats and bags. Unpriced components stay unknown.

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": {
      "currency": "<currency>",
      "travellers": "<travellers>",
      "components": "<components>"
    },
    "name": "calculate_trip_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyYes
componentsYes
travellersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.9

TDQS

A3.5/5.0
Behavior3/5

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

readOnlyHint=true already establishes the safety profile, and the description usefully adds that unpriced components yield 'unknown' rather than a silent zero or an error. However, it leaves two material behaviors unexplained: whether components must already be denominated in the requested currency or get converted, and whether per-person prices are multiplied by the travellers value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, no filler, with the core operation front-loaded and the edge-case caveat second. Every clause carries information an agent needs.

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

Completeness3/5

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

For a read-only, three-required-parameter aggregation tool with zero schema description coverage and no output schema, the description covers the operation and one important failure mode. It remains insufficient on the two ambiguities that most affect a correct call: currency handling of components and the per-person vs full-party interpretation of price relative to travellers.

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 description coverage is 0%, so the description must carry the param burden and it only partly does. It clarifies 'currency' via 'in one currency' and enumerates component kinds matching the type enum, but 'travellers' is only obliquely referenced by 'full-party', and the meaning of the price/verified/description fields in the components array is not addressed.

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 names a specific verb ('Sum') and a precise resource ('full-party quotes ... for flights, stays, transfers, seats and bags'), and adds the scoping constraint 'in one currency'. It is clear what the tool returns, but it does not name or differentiate itself from near-siblings such as compare_fare_totals or compare_checkout_quotes.

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?

Usage is only implied: an agent can infer this is the aggregation step after quotes are gathered. There is no explicit when-to-use statement, no when-not-to-use, and no routing to alternatives that also produce totals or comparisons.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.