Skip to main content
Glama

AILounge99 airport lounges

Match a trip to lounges

match_itinerary
Read-onlyIdempotent

Given a trip (free text in any language, or structured stops), checks every lounge at each departure and connection against security area, terminal (including which terminals connect after security) and children, ranks the rest by the traveller's wishes and price (a lounge closed at the given time goes last, flagged), and returns the pass needed per leg with a total. A missing fact that would change the pass comes back as a question ("questions", "changes_the_pass": true) and that leg as "needs_answer" with what each answer gives, never as an assumption; ask the traveller, then call again with the answer in "trip" (e.g. the stop's "terminal"). Read-only: it does not reserve or buy anything.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "match_itinerary"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoThe trip as the traveller said it, e.g. "Shenzhen to Tokyo via Singapore, 4h layover, 2 adults, want a shower"
tripNoStructured alternative to text. Stops in travel order.
currencyNoUSD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world, so the bar is lower, and the description still adds substantial behavior: closed lounges are ranked last and flagged, missing facts return 'questions' with 'changes_the_pass' and a 'needs_answer' leg rather than an assumption, and nothing is reserved or purchased. That tells the agent exactly what output semantics and retry loop to expect.

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 operation and the read-only reassurance placed at the end where it belongs. The middle is a long dense clause chain covering three checks, ranking, return payload and the question/retry loop; it is efficient but slightly run-on and could be split for scannability.

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 and the tool is complex (nested trip object, three parameters, question/answer loop), yet the description covers the return contents (pass per leg, total, questions, needs_answer) and the retry workflow. Residual gaps are the undocumented nested fields like layovers units and currency behavior, which the schema only partially covers.

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?

With 67% schema coverage and nested objects, the description adds real meaning beyond the schema: 'text' vs 'trip' are two alternatives for the same input, 'trip' is the structured form with stops in travel order, and answers to questions are fed back into 'trip' (e.g. the stop's 'terminal'). It does not explain currency, layovers units, or the children -1 sentinel, leaving some gaps.

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 ('match a trip to lounges') and then enumerates the actual work: checking every lounge at each departure and connection against security area, terminal connectivity and children, ranking by wishes and price, and returning the pass per leg with a total. This is far more specific than the sibling names get_lounge/search_catalog imply, so an agent can tell which one to invoke.

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 a clear operating context — accept free text in any language or structured stops — and a concrete follow-up protocol: if a fact is missing, ask the traveller, then call again with the answer in 'trip'. It does not explicitly exclude or route against siblings (e.g. when a single-lounge lookup suffices), so it stops short of full when/when-not guidance.

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