Skip to main content
Glama
travelpayouts-mcp

travelpayouts-mcp

resolve_place

Resolve a city name or IATA code to Travelpayouts city and airport IATA codes before running flight searches, so search tools receive accurate location identifiers.

Instructions

Resolve a city name or IATA code to IATA codes (cities + airports) using the Travelpayouts directory. Use before search tools.

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": {
      "query": "<query>"
    },
    "name": "resolve_place"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesCity name or IATA code.
localeNoru, en, es (default ru).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the shape of the result (cities + airports IATA codes) and the data source, but says nothing about ambiguous multi-match results, permissions, rate limits, or failure behavior — meaningful gaps for a lookup tool with no annotation coverage.

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 short sentences with zero filler; the core purpose is front-loaded and the usage constraint follows immediately. Nothing could be removed without losing information.

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 no annotations, no output schema, and one undocumented parameter, the definition is adequate but thin. It covers what the tool does and when to call it, but leaves the agent guessing about the limit parameter's effect and how multiple matches are returned.

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 67%: query and locale are documented in the schema, but limit (1-20) has no description anywhere. The description adds no parameter-level detail beyond what the schema already provides, so it neither compensates for the gap nor misleads.

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 ("Resolve a city name or IATA code") and states the concrete output (IATA codes for cities + airports) plus the backing directory. It is clear on its own, though it doesn't explicitly contrast itself against sibling tools like search_cheapest_tickets beyond the generic "before search tools" cue.

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?

"Use before search tools" gives a clear ordering constraint that tells the agent when to reach for this tool rather than jumping straight to a search. It stops short of naming a specific sibling or stating when-not-to-use (e.g., when you already have a valid IATA code), so it is strong but not complete.

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