Skip to main content
Glama

Turn Left Fares

Check a fare

check_fare
Read-onlyIdempotent

Use when a traveller has a flight price and asks whether it is good, cheap, a deal or worth booking, or asks what a route usually costs in Business, First, Premium Economy or Economy. Judges the price against the route's own history: the usual fare (median of up to 52 weekly medians of Google Flights prices), the good-fare bar (30% below usual), how far the price is above or below usual, the cheapest fare seen in the last 7 days, and a link to the route page.

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": {
      "origin": "<origin>",
      "destination": "<destination>",
      "price": "<price>"
    },
    "name": "check_fare"
  }
}

Input Schema

NameRequiredDescriptionDefault
tripNoRound trip or one way.round_trip
cabinNoCabin class.business
priceYesThe fare to judge, for one adult, all taxes included.
originYesWhere the trip starts: an IATA airport code (SYD, LHR) or a city name (Sydney, London).
currencyNoThe price's currency.AUD
destinationYesWhere it goes: an IATA airport code (SYD, LHR) or a city name (Sydney, London).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, and the description goes further by disclosing the data source (Google Flights medians, up to 52 weekly medians) and the exact scoring rule (good fare = 30% below usual). It still says nothing about latency, coverage limits for unknown routes, or what happens when history is thin, which keeps it off 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?

The use case is front-loaded ahead of the methodology, and both sentences carry information. The second sentence is dense and packs five metrics into one clause chain, which is slightly harder to scan than a short bulleted list, but there is no filler.

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?

With no output schema, the description correctly takes on the burden of describing return values by listing each computed metric and the route link, and the input contract is fully covered by the schema. It omits what is returned when a route has no pricing history or the airport code is unrecognised, a real gap for a lookup tool.

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 100%, so the schema already documents origin/destination formats, currency, cabin and the taxes-included price definition. The description only echoes the cabin enum values and adds no extra semantics for trip type, currency handling, or how price interacts with cabin/trip assumptions — baseline 3.

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?

The description names a specific verb and resource — judging a given flight price against the route's own fare history — and enumerates the concrete outputs (usual fare median, 30%-below good-fare bar, delta vs usual, 7-day cheapest, route link), which separates it cleanly from fare-discovery siblings like find_deals and cheapest_destinations.

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?

It gives explicit trigger conditions: the traveller already holds a price and asks whether it is good/cheap/worth booking, or asks what a route usually costs in a given cabin. It never names a sibling or states when NOT to use it (e.g. when no price exists yet, use find_deals), so it falls short of a 5.

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