Skip to main content
Glama

Prepare a flight offer email

egf_prepare_flight_offer
Read-onlyIdempotent

Checks an email that would send one fare from a flight search to the traveller as a formal offer, and returns who it goes to and what it offers, with a confirmation_token valid for 15 minutes. Nothing is sent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoTraveller's name, used to address the email.
emailYesWhere to send the offer.
adultsNoAdults on the offer. Defaults to 1.
infantsNoLap infants on the offer.
messageNoA sentence or two of context for the traveller, e.g. why this option was chosen.
childrenNoChildren on the offer.
offer_idYesoffer_id of the chosen fare, exactly as the flight search returned it.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
emailYesWhere the offer would go.
priceNoPer person, when the search is still held.
adultsYes
infantsYes
carriersNo
childrenYes
offer_idYes
departureNoLocal departure, ISO 8601 (YYYY-MM-DDTHH:MM).
expires_atYesISO 8601 date-time after which the token is refused.
confirmation_tokenYesAuthorises sending exactly this email.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/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 non-open-world, so the safety profile is covered. The description adds genuinely new behavior: it returns a confirmation_token valid for 15 minutes, states what the result contains, and reassures that nothing is sent.

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?

A single dense sentence with the preview-and-no-send guarantee front and center; every clause earns its place. Slightly awkward phrasing ('Checks an email that would send') but no wasted text.

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 re-explained, and the description adds the token validity window and the no-side-effect guarantee. For a 7-param tool it is complete enough, though it could name the follow-up send step.

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?

Every parameter is already documented at 100% schema coverage, so the schema carries the semantics. The description only alludes to 'who it goes to', adding no syntax or format detail beyond the structured fields, so 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?

States a specific action (checks/prepares an email offer) on a specific resource (a fare from a flight search), and describes what it returns (recipient, offered fare, confirmation_token). It distinguishes itself from the write path only implicitly via 'Nothing is sent' rather than by naming the send sibling.

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 token plus 'Nothing is sent' implies this is a preview/dry-run step that precedes an actual send (likely egf_send_flight_offer), but neither the alternative nor the when-to-use condition is named explicitly. Usage is inferable but not stated.

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.