Skip to main content
Glama

Cheap Flights, Hotels & eSIMs

Explain how deals are picked

explain_deal_score
Read-onlyIdempotent

How Cheap Flights Alert decides a fare is a deal: the usual route price it is compared with, the minimum discount, and how often alerts are sent. With an origin and destination airport, also shows today's tracked fare on that route, its usual price and discount.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "explain_deal_score"
  }
}

Input Schema

NameRequiredDescriptionDefault
originIataNoOptional departure airport IATA code of one deal to explain, for example BUD.
destinationIataNoOptional destination airport IATA code of that deal, for example MIL. Needs originIata.

Output Schema

NameRequiredDescriptionDefault
dealYes
rulesYes
dealNotFoundNo
minDiscountPercentYes

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 declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real value beyond that by disclosing what the two operating modes return (global policy explanation vs. route-specific fare, usual price and discount), which the annotations cannot convey.

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, both front-loaded with the core explanation first and the optional parameter-driven behavior second. Dense but free of filler; a slightly cleaner separation of the two modes would make it even tighter.

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, return values need not be spelled out, and the description covers both the no-parameter and parameterized paths plus the optionality of the inputs. Complete for a two-mode explainer tool; only the absence of usage routing keeps it from the top.

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 100%, so both parameters are documented at baseline 3. The description goes further by explaining the conditional effect of the pair — 'with an origin and destination airport, also shows today's tracked fare' — making clear that the parameters switch the tool into a route-specific mode rather than merely filtering.

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 the concrete subject (how the service decides a fare is a deal) and enumerates the components returned: usual route price, minimum discount, alert frequency. That is specific enough to distinguish it from siblings like check_fare or cheapest_deals_from_airport, though it never explicitly contrasts with them.

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 implied rather than stated: an agent can infer it should call this to understand or justify the deal logic, and that supplying both airport codes adds a route-specific section. There is no explicit when-to-use / when-not-to-use guidance or named alternative for fare lookups.

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