Skip to main content
Glama

Build a Custom Segmented Route

custom_route_build
Read-only

Break a complex multi-city itinerary into individually-ticketable segments with carrier recommendations. Handles routes that don't fit alliance fare rules — mixed carriers, LCCs, Gulf bridge connections, surface sectors. This is how AirTreks consultants build 90% of itineraries. Use this for any route with 4+ stops, backtracking, or region combinations that alliance fares can't cover.

Input Schema

NameRequiredDescriptionDefault
paxNoNumber of passengers
budgetNoBudget tier: 'budget' prioritizes LCCs, 'business' prioritizes J-class product quality
citiesYesOrdered list of IATA city/airport codes (e.g. ['LAX', 'NRT', 'BKK', 'CMB', 'NBO', 'LIS', 'LAX'])
preferencesNoPreferences: 'no-lcc', 'lounge-access', 'short-layovers', 'surface-ok'

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 declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds meaningful behavioral context beyond that: it explains the routing logic (splitting into ticketable segments, carrier recommendations) and the domain constraint that alliance fare rules are deliberately bypassed. It omits any note on latency, cost, or output volume, which keeps it from a 5.

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?

Front-loaded with the core action, then scope, then trigger conditions — good ordering. The 'This is how AirTreks consultants build 90% of itineraries' sentence is promotional and does not change an agent's decision, keeping it just under a 5.

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?

No output schema exists, so the description carries return-value burden, and it does indicate the output shape (individually-ticketable segments with carrier recommendations). Combined with full schema coverage on inputs, an agent has enough to invoke correctly; only the absence of explicit alternatives keeps it from 5.

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%, so the schema already documents pax, budget, cities, and preferences in detail. The description adds no parameter-level meaning (no format hints, no ordering caveats beyond what the cities description already says), so the baseline 3 applies.

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 — 'Break a complex multi-city itinerary into individually-ticketable segments with carrier recommendations' — and immediately scopes what kind of routes it handles (mixed carriers, LCCs, Gulf bridge connections, surface sectors). An agent can distinguish this from itinerary_quote or route_suggest without opening a 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?

Gives explicit triggering conditions: 'Use this for any route with 4+ stops, backtracking, or region combinations that alliance fares can't cover.' That is strong when-to-use guidance, but it does not name an alternative tool (e.g., fare_product_match or itinerary_quote) for the cases this tool does NOT cover, so the routing decision is only half-specified.

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.