Skip to main content
Glama

Flight search

st_flight_search
Read-onlyIdempotent

Search one-way domestic economy flights by origin, destination, and departure date, ordered cheapest first, with prices in Toman for the whole party.

Instructions

Search one-way domestic economy flights for a date, cheapest first.

Prices are Toman for the whole party (adult_price per adult). Tickets can be bought only on snapptrip.com.

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": "<departure>"
    },
    "name": "st_flight_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoOrdercheapest
adultsNo
originYesOrigin IATA code, e.g. THR
airlineNoKeep one airline by IATA code, e.g. W5
infantsNo
childrenNo
departureYesDeparture date YYYY-MM-DD (Gregorian)
destinationYesDestination IATA code, e.g. MHD
max_resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world behavior, so the description only needs to add context — and it does: currency (Toman), that prices are for the whole party with adult_price per adult, and that ticketing is restricted to snapptrip.com. It stops short of describing the result shape (flight list fields, time/airline info) or how max_results truncates results.

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?

Two sentences, no filler, with the query scope front-loaded and the pricing/booking caveats following. Every clause carries information an agent would otherwise have to guess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With nine parameters and no output schema, the description should sketch what a result contains (per-flight price, times, airline) and how max_results behaves. It covers the pricing model well but leaves passenger-composition and result-shape semantics undocumented for a relatively wide parameter surface.

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 coverage is 56%, and the description adds genuine meaning the schema lacks — that pricing is party-total and denominated in Toman, and that results are cheapest-first (mapping to the sort default). It says nothing about the passenger-count parameters (adults/children/infants), max_results truncation, or the airline filter, leaving roughly half the parameters with only schema hints.

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?

States a specific verb and resource ("Search ... flights") and narrows scope with three qualifiers: one-way, domestic, economy, plus a date-based query. That is far more precise than a generic flight search, though it does not explicitly contrast itself with the price/airport flight siblings.

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?

Usage context is implied by "for a date" and the domestic/economy constraints, but there is no explicit when-to-use or when-not guidance and no pointer to sibling tools (e.g. st_tool_airport_lookup for resolving IATA codes). The snapptrip.com sentence is a booking constraint, not selection guidance.

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