Skip to main content
Glama

Empty Leg Index

Set a route alert

set_alert

Store a free email alert for new empty legs on a route. Set an origin, a destination, or both. Each end is an airport (city, name, or IATA or ICAO code) or a country (ISO code or English name, for example GB or France). originCountry and destinationCountry name the country for that end when you want it on its own. dateFrom and dateTo are an optional inclusive window, YYYY-MM-DD. maxPrice is an optional highest published amount, in the leg's own currency unless currency is also set. email is the address that receives the alert. consent must be the boolean true, and only after the person has asked to be emailed. The watch is stored as pending and a confirmation link is emailed. No alert is sent until that link is opened. Each alert email includes an unsubscribe link, and a delete-my-data link removes every watch stored for that address. This does not book a seat and it does not take payment. A leg is included only when every source on it is enabled. Villiers is never included.

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": {
      "email": "<email>",
      "consent": "<consent>"
    },
    "name": "set_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesEmail address that receives the confirmation and, after that, the alerts. One address, no spaces.
dateToNoOptional inclusive last departure date, YYYY-MM-DD. Omit it for no end.
originNoDeparture airport or country. An airport is a city, a name, or an IATA or ICAO code, for example LTN or London Luton. A country is an ISO code or an English name, for example GB or France. Two letters are always a country. Omit this when originCountry carries the country, or when only the destination is set.
consentYesMust be the boolean true. That means the person asked to be emailed about this route. Any other value is rejected, and the watch is not stored.
currencyNoThree-letter currency code such as EUR or GBP. Applied only together with maxPrice. Omit it when maxPrice is omitted.
dateFromNoOptional inclusive first departure date, YYYY-MM-DD. Omit it for no start.
maxPriceNoOptional highest published amount to include. Non-negative number, in the leg's own currency unless currency is also set. Legs with no numeric price are left out when this is set.
destinationNoArrival airport or country, in the same form as origin. Omit this when destinationCountry carries the country, or when only the origin is set.
originCountryNoCountry of departure on its own, as an ISO code or an English name, for example FR or France. A leg matches when the departure airport is in that country. Use this when origin is an airport and you also want to name the country, or instead of origin.
destinationCountryNoCountry of arrival on its own, as an ISO code or an English name. A leg matches when the arrival airport is in that country.

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?

Beyond the annotations, it discloses the double opt-in lifecycle (stored pending, confirmation link emailed, nothing sent until opened), unsubscribe and delete-my-data behavior, and inclusion rules for legs and sources. The notable gap is repeated-call behavior: idempotentHint=false implies duplicate watches, but the description never says whether calling twice stores two watches for the same address.

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 core action and constraints are front-loaded, then parameter guidance, then side effects and exclusions; there is little wasted wording. It is still fairly long, with the airport/country input format explained in prose that largely duplicates the schema, and the source-enablement/Villiers exclusions read as appended rules.

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?

For a 10-parameter mutation with no output schema, the description covers inputs, consent, lifecycle, and filtering caveats well. It does not describe what a successful call returns (e.g., a watch identifier or status), which an agent may need to confirm the alert was stored.

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?

With 100% schema description coverage, the baseline is 3, and the description mostly restates what the schema already says about airport vs. country forms, ISO codes, date format, and the currency/maxPrice pairing. It adds only modest relational clarity ("when you want it on its own") rather than new semantics.

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?

"Store a free email alert for new empty legs on a route" gives a concrete verb (store), resource (email alert/watch), and scope (route, empty legs). It is clearly distinguishable from the sibling search_empty_legs and submit_enquiry, reinforced by "This does not book a seat and it does not take payment."

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?

The description tells the agent how to shape a valid request: set origin, destination, or both, with country fields as an alternative, and optional date window and price cap. It also states the consent precondition (only after the person asked to be emailed). It does not explicitly route to or away from a named sibling, which keeps it 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