Skip to main content
Glama

Search one-way flights

search_flights
Read-only

Flights only: searches one-way flights on AlgoTrips for one day between two cities or airports, with current prices in Indian rupees. Returns up to 5 options (airline, flight numbers, times, duration, stops, baggage, refund, fare and price for all passengers together), each with a link to book it on algotrips.com, and a link to see every flight. Nothing is booked or paid here: booking and payment happen on algotrips.com, where the price is checked again. A city that is not found or is shared by several cities returns close matches instead (status needs_changes). Normally works without signing in, at the prices algotrips.com shows a visitor who is not signed in; when it asks for sign-in instead, the person signs in to AlgoTrips. For a signed-in AlgoTrips account, the prices are the account's own.

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": {
      "from": "<from>",
      "to": "<to>",
      "date": "<date>"
    },
    "name": "search_flights"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesWhere the flight goes: a city or a 3-letter airport code, as for from.
dateYesThe day of the flight, YYYY-MM-DD, from today up to 330 days ahead.
fromYesWhere the flight leaves from: a city ("Mumbai", or "Hyderabad, India" when the name is shared) or a 3-letter airport code ("BOM").
cabinNoCabin: economy, premium_economy, business or first. Left out: every cabin.
adultsNoAdults (12 and over) travelling, 1 to 9. Left out: 1.
infantsNoInfants under 2 (on a lap), 0 to 4, no more than the adults.
directOnlyNotrue: nonstop flights only.
departAfterNoThe earliest departure time, HH:MM (24-hour clock, local time at the departure airport).
childrenAgesNoEach child's age, 2 to 11. Adults and children together are at most 9.
departBeforeNoThe latest departure time, HH:MM (24-hour clock, local time at the departure airport).
preferredTimeNoA preferred departure time, HH:MM. Without departAfter or departBefore, only flights leaving within 2 hours of it are returned. The flight nearest to it is always among the options.

Output Schema

NameRequiredDescriptionDefault
toNo
dateNo
fromNo
partyNoThe travellers the search was for (adults left out = 1).
statusYes
messageYes
optionsNo
priceNoteNo
suggestionsNo
allFlightsLinkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare read-only, open-world, non-idempotent, non-destructive; the description goes well beyond them by disclosing the result cap (up to 5 options), the fields each option carries, the booking and 'see every flight' links, price re-verification at booking, the needs_changes status for ambiguous or unknown cities, and the two authentication modes (anonymous visitor pricing vs. signed-in account pricing). These are exactly the behavioral traits an agent cannot infer from structured fields.

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 one-line scope statement, then results, then booking boundary, then edge cases. It is dense but every clause carries information; the sign-in and account-pricing sentences are the least essential and slightly convoluted.

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?

For an 11-parameter, open-world search tool with an output schema, the description still covers the things the schema cannot: result count and shape, external booking handoff, ambiguity error state, and auth/pricing behavior. Nothing an agent needs in order to call it or interpret the outcome is missing.

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 coverage is 100%, so the schema carries the per-parameter definitions and the baseline is 3. The description adds meaning on top: date is a single day, from/to accept either a city or a 3-letter airport code, and a shared or unknown city name yields close matches with status needs_changes — real semantics the schema does not encode.

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?

Opens with a specific verb and resource ('searches one-way flights on AlgoTrips') plus scope ('Flights only', one day, two cities/airports, prices in INR). The 'Flights only' qualifier and the one-way/one-day constraints make it distinguishable from plan_trip and destination_facts 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?

Explicitly bounds the tool's role: 'Nothing is booked or paid here: booking and payment happen on algotrips.com', which tells the agent this is a search-only step and where to route the user afterwards. It does not, however, name or compare against siblings such as plan_trip or trip_status, so the alternative-selection guidance is implied rather than stated.

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