Skip to main content
Glama
travelpayouts-mcp

travelpayouts-mcp

build_search_url

Builds a plain Aviasales flight search URL from origin and destination IATA codes plus optional dates, passengers, and travel class, without tracking; use partner link creation for affiliate links.

Instructions

Build a plain Aviasales search URL (params string + filled form URL + results URL). No tracking: for affiliate links call create_partner_links.

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

Input Schema

NameRequiredDescriptionDefault
adultsNo
originYesIATA code of departure city/airport, e.g. MOW.
infantsNo
childrenNo
destinationYesIATA code of destination city/airport, e.g. IST.
return_dateNoYYYY-MM-DD.
travel_classNo
departure_dateNoYYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it usefully discloses the no-tracking behavior and the three URL forms returned, which is real behavioral value. It does not say whether any network request occurs, whether the generated URL expires, or what happens when optional fields like dates are omitted, leaving meaningful gaps for a URL-construction tool.

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 compact sentences with the capability stated first and the alternative-routing note second; every clause carries information and nothing is padded.

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?

The description does well on return values despite having no output schema, and covers the tracking distinction. However, for an 8-parameter tool with 50% schema coverage and no annotations, it leaves passenger/class parameters and optionality behavior unexplained, so an agent still needs to guess at correct invocation details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50% and the description adds no parameter meaning at all — nothing about passenger count semantics, the travel_class enum, or date pairing rules. Half the parameters (adults, children, infants, travel_class) are undocumented in both schema and description, so the description fails to compensate for the coverage gap.

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 uses a specific verb and resource ('Build a plain Aviasales search URL') and enumerates the concrete outputs (params string, filled form URL, results URL), so the agent knows this constructs links rather than fetching prices. It explicitly separates itself from create_partner_links, though it doesn't contrast with search_cheapest_tickets, leaving slight ambiguity about whether a search is actually performed.

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?

It gives a clear routing rule: use this for plain, non-tracked URLs, and call create_partner_links instead for affiliate links. It stops short of stating exclusions against the search/pricing siblings, so the agent must infer that this tool returns no fare data.

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