Skip to main content
Glama

agoda_flights_search

Read-only

Agoda one-way flight search: bookable itineraries between two IATA airport codes for a departure date, including per-segment flight number, airline, times, layovers, aircraft type, and price.

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": {
      "origin": "<origin>",
      "destination": "<destination>",
      "departure_date": "<departure_date>"
    },
    "name": "agoda_flights_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo1-indexed result page. Defaults to 1.
adultsNoAdult passengers (age 12+). Defaults to 1.
originYesOrigin IATA airport code, e.g. from flights/search-locations.
infantsNoInfant passengers (under age 2). Defaults to 0.
childrenNoChild passengers (age 2-11). Defaults to 0.
cabin_classNoCabin class. One of: Economy, PremiumEconomy, Business, First. Defaults to Economy.
destinationYesDestination IATA airport code, e.g. from flights/search-locations.
departure_dateYesDeparture date, YYYY-MM-DD.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and idempotentHint=false, so the safety and repeatability profile is covered. The description adds real value by promising per-segment detail (flight number, airline, times, layovers, aircraft) and price in the response, but it says nothing about pagination despite a page parameter, nor about result volume or rate limits.

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?

It is a single front-loaded sentence that opens with the provider, action, and trip type before listing result fields. The long enumeration of returned attributes is informative rather than padding, though it slightly crowds out the usage guidance that would have been more valuable.

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?

All required and optional parameters are documented in the schema, an output schema exists so return shape needs no explanation, and the description still summarizes result contents usefully. What is missing is routing guidance among the several competing flight-search siblings, which matters for selection but not 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%, with every one of the eight parameters documented in the schema, including defaults and accepted cabin classes. The description restates origin/destination as IATA codes and the departure date but adds no format, constraint, or edge-case meaning beyond the schema, so the baseline of 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?

The description names a specific verb and resource ('Agoda one-way flight search') and pins the scope to two IATA codes plus a departure date, plus what each result contains. It never distinguishes this from the sibling flight search tools (booking_flights_search, expedia_flights_search, skyscanner_flights_search), so an agent must rely on the provider name alone to choose among them.

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?

The word 'one-way' communicates a scope limit, and 'bookable itineraries' implies these are purchasable results rather than schedules. There is no explicit when-to-use guidance, no exclusion for round-trip or multi-city needs, and no pointer to agoda_flights_search_locations for resolving codes even though that dependency is the obvious companion 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.