Skip to main content
Glama

Get search results

get_search_results
Read-onlyIdempotent

Latest results of a search_flights call by searchId, same shape and filters. No fare-source call, no quota. Poll every few seconds while status is partial. Unknown or expired id: search_expired.

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": {
      "searchId": "<searchId>"
    },
    "name": "get_search_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNo
searchIdYesFrom search_flights. Valid 20 minutes.

Output Schema

NameRequiredDescriptionDefault
statusYes
searchIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / searchId / description
      Previous value: -"From search_flights. Valid 30 minutes."New value: +"From search_flights. Valid 20 minutes."
  2. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond them: quota-free calls, expected polling cadence, the existence of a partial status, and the search_expired failure mode. It does not explain what statuses other than partial look like or how long polling should continue, leaving a modest gap.

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?

Four short clauses, front-loaded with the identity of the resource and followed by the operational rules. Nothing is redundant, and every sentence carries a distinct instruction.

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?

An output schema exists, so return-shape explanation is correctly omitted, and the annotations plus the quota/expiry notes cover most of what an agent needs. The only real omission is the meaning of the 'view' parameter, which is left undefined across all structured fields.

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?

With 50% schema coverage, the searchId parameter is already documented in the schema ('From search_flights. Valid 20 minutes.'), and the description only reinforces it with the expiry failure mode. The 'view' enum (compact/full) is never explained in either the schema or the description, so half the parameters carry no semantic guidance.

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 ('Latest results of a search_flights call by searchId') and anchors the tool to its producer, search_flights, so an agent can distinguish it from offer/detail tools. The phrase 'same shape and filters' is slightly compressed but still communicates that this is a retrieval of an existing search rather than a new one.

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 an explicit activation rule ('Poll every few seconds while status is partial') plus a de-scoping note ('No fare-source call, no quota') and an error path ('Unknown or expired id: search_expired'). It stops short of naming an alternative tool for the case where no searchId exists, but the polling and quota guidance is concrete enough to drive correct invocation.

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.