Skip to main content
Glama

search_flights

Refresh a route's future flight prices by searching each leg, saving results to history, and updating the Excel file; returns a summary now or continues in the background.

Instructions

Refresh a route's prices: search every leg with a future date, store the search in the history and update the Excel file. If it finishes within wait_seconds (max 110) the summary is returned right away; otherwise it keeps running in the background and get_summary reads it later.

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": {
      "route": "<route>"
    },
    "name": "search_flights"
  }
}

Input Schema

NameRequiredDescriptionDefault
routeYes
wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses three side effects (history write, Excel file update, background continuation after return) and the 110-second cap on wait_seconds. It omits failure behavior for the background job and any permission or cost/rate-limit caveats, so not a 5.

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?

Two sentences, front-loaded with the action and its side effects, then the return/async behavior. Every clause carries information. Minor density cost from cramming three side effects into one sentence, but nothing is wasted.

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?

For a tool with hidden side effects, async continuation, and no output schema, the description covers the essential call contract and points at get_summary for the deferred result. The main residual gap is the unspecified format of the required 'route' argument.

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 0%, so the description must compensate for both parameters. It adds real meaning for wait_seconds (blocking window, max 110, default not restated) but says nothing about the required 'route' parameter — no hint whether it is a name, ID, or pair of airports. Partial compensation only.

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 concrete verb and object — 'Refresh a route's prices' — and then enumerates exactly what the operation does (search every future-dated leg, store the search in history, update the Excel file). The final clause distinguishes it from get_summary by explaining that this tool launches the work while get_summary reads the result.

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 a clear conditional routing rule: if it finishes within wait_seconds the summary comes back immediately, otherwise get_summary reads it later. That is explicit guidance about the async alternative pipeline. It does not state any when-not-to-use condition or mention siblings like route_data/list_routes, so it falls short of a 5.

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