Skip to main content
Glama

Flat Flights — business & first class fares

Is €X a good Business or First Class fare on this route?

check_business_or_first_price
Read-only

Business class & First class price check: evaluates whether a fare quoted elsewhere (in EUR, round trip per adult) is a steal, good, fair or overpriced vs our daily route history and distance benchmark, and returns a cheaper Aviasales booking link if we observed a lower price.

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": {
      "from": "<from>",
      "to": "<to>",
      "price_eur": "<price_eur>"
    },
    "name": "check_business_or_first_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesCity name (e.g. "Milan", "New York") or 3-letter IATA city/airport code (e.g. "MIL", "JFK").
fromYesCity name (e.g. "Milan", "New York") or 3-letter IATA city/airport code (e.g. "MIL", "JFK").
cabinNobusiness
price_eurYesQuoted round-trip fare per adult in EUR.

Output Schema

NameRequiredDescriptionDefault
cabinNo
foundYes
ratingYes
summaryYes
quotedEurNo
bookingLinkNo

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 only declare readOnlyHint and openWorldHint, so the description carries the behavioral load and does it well: it defines the fare basis (EUR, round trip per adult), the comparison sources (daily route history plus distance benchmark), the verdict categories returned, and the conditional side effect of returning a cheaper booking link. It does not discuss behavior when no route history or benchmark exists, which would be the natural remaining gap.

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?

It is a single dense sentence, front-loaded with the resource and the core question, with no filler. The verdict taxonomy is packed in efficiently, though splitting the return-link behavior into a second short clause would improve scanability slightly.

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?

All required inputs are covered, an output schema exists so return structure need not be spelled out, and the description still summarizes the verdict scale and the conditional link. It is complete enough to invoke correctly; only edge-case behavior (missing history, unsupported routes) is left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75% and the schema already documents from/to formats and the price bounds. The description adds the meaningful unit context absent from the price_eur field text ('in EUR, round trip per adult'), reducing the risk of a one-way or per-person mismatch. The cabin parameter is an enum with a default and needs no further explanation.

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 opens with a specific verb and resource ('Business class & First class price check') and states precisely what is computed: whether a quoted fare is a steal, good, fair or overpriced against route history and a distance benchmark. This distinguishes it from the sibling search/deal tools, which surface fares rather than evaluate one the user already has.

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 phrase 'a fare quoted elsewhere' implicitly signals the use case (the user brings an existing quote), but no explicit when-to-use statement or contrast with siblings like search_business_class_fares or business_class_deals is given. The agent must infer that this is not a fare-search tool.

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