Skip to main content
Glama

Compare flights for jet lag

compare_flights
Read-onlyIdempotent

Compares two to four candidate itineraries for the same trip by running the Delagged plan engine on each: how many days after landing each plan needs, and what the arrival puts the traveler in front of (morning light, an evening, a night). Use before booking, when someone is choosing between flight times or routings and asks which is better for jet lag. Flight time is a tiebreaker after price and connections; the scores are model outputs from light-timing principles, not measured outcomes.

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": {
      "options": "<options>"
    },
    "name": "compare_flights"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsYes
travelerNo

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 already cover the read-only, idempotent, non-destructive, closed-world profile, so the description earns credit for what it adds: the results are model outputs from light-timing principles rather than measured outcomes, and the engine is deterministic per plan run. It does not discuss cost/timing of runs or how many results come back, but the epistemic caveat is a genuinely useful disclosure.

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?

Three sentences, each carrying distinct load: mechanics, when-to-use, and caveat/prioritization. Front-loaded with the action. Slightly dense in the first sentence but no filler.

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 no output schema, the description partly compensates by sketching what comes back (days needed after landing, arrival light context) for a nested two-parameter tool. The same-trip constraint and the model-output caveat close the main gaps; the exact response shape remains unspecified, which is acceptable for a read-only comparison.

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?

The input schema describes every property and enum value with examples and defaults, so the schema does the heavy lifting. The description adds only two semantics beyond it: the count bound (two to four) and the constraint that options must be alternatives for the same trip — a real addition, but modest against an already well-documented schema.

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?

States a specific verb and resource — compares two to four candidate itineraries for the same trip via the Delagged plan engine — and names the two outputs (days needed after landing, what the arrival puts the traveler in front of). An agent can tell this is a comparison tool, not the single-itinerary planner, without opening the schema.

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?

"Use before booking, when someone is choosing between flight times or routings and asks which is better for jet lag" gives a clear triggering condition, and "flight time is a tiebreaker after price and connections" sets prioritization. No explicit when-not or alternative-named routing (e.g. defer to plan_trip for a single itinerary) is spelled out, so it stops short of 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