Skip to main content
Glama
Filip-Kin

ita-matrix-mcp

by Filip-Kin

Search flights (multi-city capable)

search_flights

Search ITA Matrix for complex multi-city flight itineraries using custom routing codes to control carriers, connections, and stops. Get ranked results for travel planning.

Instructions

Search ITA Matrix for itineraries. A trip is a list of legs (slices): • 1 slice = one-way • 2 slices = round-trip (second slice reverses the first) • 3+ = multi-city / open-jaw — legs need not connect Each leg takes its own routing code, so you can pin a carrier, force a connection city, or require a specific number of flights per leg. Expect 20-60s. Returns ranked itineraries and a Search ID for get_itinerary_details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNoClient-side sort. Default price.
cabinNoMinimum cabin. Default COACH.
limitNoHow many itineraries to return. Default 10.
adultsNo
slicesYesThe legs, in travel order. For a round-trip, add a second slice with origin/destination swapped.
youthsNo
seniorsNo
childrenNo
currencyNoISO 4217, e.g. "USD", "EUR".
maxStopsNoStops allowed RELATIVE TO the minimum possible for the route (Matrix semantics), not absolute. 0 = only the shortest-hop routings. Default 1.
salesCityNoIATA city code for point of sale. Changes which fares are filed and offered — useful for finding cheaper origin-country pricing.
infantsInLapNo
infantsInSeatNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the transparency burden. It discloses latency ('Expect 20-60s'), return value ('ranked itineraries and a Search ID'), and slice semantics. It does not cover error cases or rate limits, but the disclosed behaviors are meaningful for invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded: two sentences plus a bulleted list convey the core concept, routing flexibility, latency, and follow-up flow. Every sentence earns its place, with 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?

The tool is complex (13 params, multi-slice logic) and has no output schema. The description covers the essential mental model, routing mechanism, latency, and connection to get_itinerary_details. It does not enumerate return field details or error handling, but for a search tool paired with a details tool, it provides sufficient context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 54%, so the description adds valuable extra meaning. It explains the slices parameter's semantics (one-way/round-trip/open-jaw) and the routing parameter's purpose (pin carrier, force connection, control flight count). Other parameters like passenger counts remain undocumented in both schema and description, but the most complex parameters receive useful added context.

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?

The description opens with 'Search ITA Matrix for itineraries' – a specific verb+resource pair. It then distinguishes trip shapes (one-way, round-trip, multi-city) and explicitly mentions the Search ID for get_itinerary_details, clearly separating this tool from the details tool.

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 gives clear usage context: slice count determines trip type, routing codes allow complex legs, and results feed into get_itinerary_details. It does not explicitly contrast with search_flexible_dates or state when not to use this tool, so it stops short of full alternative guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Filip-Kin/ita-matrix-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server