Skip to main content
Glama

Cheap Flights, Hotels & eSIMs

Is this a good price

check_fare
Read-onlyIdempotent

Judges a round-trip fare someone found: great (40%+ below the route's usual price), good (20%+ below), typical, or high, with the usual price and the cheapest fare seen. Returns unknown when the route has too little history, instead of guessing.

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

Input Schema

NameRequiredDescriptionDefault
priceYesThe round-trip fare to judge.
currencyNoCurrency of that price, for example EUR. Default: the departure airport's local currency.
originIataYesDeparture airport or city IATA code, for example BUD.
destinationYesDestination city or IATA code, for example Lisbon or LIS.

Output Schema

NameRequiredDescriptionDefault
noteYes
priceYes
originYes
verdictYes
currencyYes
alertOfferYes
usualPriceYes
destinationYes
cheapestSeenYes
destinationCodeYes
percentBelowUsualYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's job is the harder part, and it delivers: it discloses the exact grading thresholds (40%+/20%+ below usual) and the graceful-degradation rule of returning "unknown" rather than guessing on thin history. It doesn't mention rate limits or how the usual price is sourced, 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.

Conciseness5/5

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

Two sentences, front-loaded with the verb and immediately enumerating the verdict scale with the numeric cutoffs inline. Nothing is padded and the edge-case behavior lands in a firm final sentence.

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 an output schema present and full parameter documentation, the description only needed to carry behavior, and it covers grading, outputs, and the low-data fallback. It stops short of saying what the reference "usual price" is based on or how the currency default interacts with a cross-border route, minor gaps for a read-only lookup.

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% and every parameter already carries a description plus an example (BUD, Lisbon/LIS, EUR default). The description adds little parameter-level meaning beyond reinforcing that the fare is round-trip, which the schema already states, so the baseline 3 applies.

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?

"Judges a round-trip fare someone found" gives a specific verb and resource, and the category list (great/good/typical/high/unknown) makes the output concrete. It never names a sibling, so an agent must infer the boundary with tools like explain_deal_score on its own.

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?

The scenario is implied — supply a fare you've already found and get a verdict — but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as explain_deal_score for a deeper breakdown. An agent can guess, but the routing decision isn't spelled out.

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