Skip to main content
Glama

calculate_multi_leg_route

Read-onlyIdempotent

Compute a multi-stop Great Circle itinerary across 2 to 8 airport waypoints across 15 aircraft profiles, returning leg-by-leg distances, headings, range feasibility, cumulative & per-cabin CO2, circuityRatio vs nonstop, 110m sovereign polygon overflight, and solar window-seat guidance.

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": {
      "waypoints": "<waypoints>"
    },
    "name": "calculate_multi_leg_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
cabinNoOptional cabin class for per-passenger CO2 scaling. Defaults to economy.
aircraftNoOptional aircraft profile ID, alias, or short name among 15 profiles. Defaults to Boeing 747-8.
waypointsYesOrdered array of 2-8 3-letter IATA airport codes (e.g. ["JFK", "LHR", "DXB", "SIN"]).
departure_presetNoOptional departure window for multi-leg solar window-seat analysis. Defaults to morning.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / aircraft / description
      Previous value: -"Optional aircraft profile ID or short name. Defaults to Boeing 747-8."New value: +"Optional aircraft profile ID, alias, or short name among 15 profiles. Defaults to Boeing 747-8."
  2. 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 needs no restating. The description adds real value by disclosing the computation model (Great Circle), the leg-by-leg output shape, and the derived metrics (circuityRatio, 110m sovereign polygon overflight, CO2) that are not in any structured field.

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 verb and scope front-loaded and no filler. The trailing output enumeration is long but each item is a distinct capability an agent needs, so little of it is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 must carry the return-value burden, and it enumerates the output fields explicitly. All four parameters are covered by the schema, the safety profile is covered by annotations, and the tool's scope is bounded — nothing essential is missing for correct invocation.

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?

Schema description coverage is 100% and every parameter, including both enums and their defaults, is fully documented there. The description only restates the 2-8 waypoint count and 15-profile aircraft space already present in the schema, adding no new syntax or semantics, 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?

Opens with a specific verb and resource ("Compute a multi-stop Great Circle itinerary") and bounds it precisely at 2-8 waypoints across 15 aircraft profiles, then enumerates the returned metrics. It is clear what the tool does, but it never names a sibling (e.g., evaluate_aircraft_range or recommend_window_seat) whose functionality it partially absorbs, so differentiation is left to inference.

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?

There is no explicit when-to-use or when-not-to-use sentence and no named alternative. The scope statement (multi-stop, 2-8 waypoints, multi-output) implies the appropriate scenario, but an agent must infer that this is the comprehensive multi-leg planner rather than a point-to-point 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