Skip to main content
Glama

Render Route Prices

render_route_prices
Read-only

Render one final Flaut.Travel route-price widget after all search_route_prices calls are complete. Call this tool exactly once and pass the complete structuredContent results unchanged. Results must use the same route, currency, market, locale, one-way setting, sorting, and unique setting; departure dates, pages, limits, and direct-only filters may differ. The tool combines and deduplicates tickets, preserves route semantics, sorts globally by price when the searches used price sorting, and renders a clear empty state when every result is empty. The attached Flaut.Travel component is the complete authoritative presentation; do not recreate it as a separate card grid, list, or table.

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": {
      "results": "<results>"
    },
    "name": "render_route_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
resultsYesComplete structuredContent results returned by search_route_prices. Pass them unchanged, in search order, after all relevant searches are complete.

Output Schema

NameRequiredDescriptionDefault
ticketsYes
originCodeYes
currencyCodeYes
searchContextYes
destinationCodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / results / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / results / items / properties / query / additionalProperties
      Removed value: -false
    • addedInput schema / properties / results / items / properties / query / properties / page / maximum
      Added value: +9007199254740991
    • removedInput schema / properties / results / items / properties / tickets / items / additionalProperties
      Removed value: -false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / tickets / items / required
      Previous value: -[
      -  "originCode",
      -  "destinationCode",
      -  "originAirport",
      -  "destinationAirport",
      -  "price",
      -  "airline",
      -  "airlineName",
      -  "flightNumber",
      -  "originCityName",
      -  "destinationCityName",
      -  "departureAt",
      -  "transfers",
      -  "durationMinutes"
      -]New value: +[
      +  "originCode",
      +  "destinationCode",
      +  "originAirport",
      +  "destinationAirport",
      +  "price",
      +  "airline",
      +  "airlineName",
      +  "flightNumber",
      +  "originCityName",
      +  "destinationCityName",
      +  "departureAt",
      +  "returnAt",
      +  "transfers",
      +  "returnTransfers",
      +  "durationMinutes",
      +  "returnDurationMinutes"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "currencyCode",
      -  "tickets",
      -  "searchContext"
      -]New value: +[
      +  "currencyCode",
      +  "originCode",
      +  "destinationCode",
      +  "tickets",
      +  "searchContext"
      +]
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare a safe, closed, read-only operation, so the bar is lower, yet the description adds real behavioral detail: it combines and deduplicates tickets, preserves route semantics, sorts globally by price when price sorting was used, and renders an explicit empty state. It also warns the attached component is the authoritative presentation and must not be recreated as a card grid, list or table, which prevents a common misuse pattern.

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?

Front-loads the action and sequencing in the first sentence, then layers the consistency rules, the combine/dedupe behavior, and the presentation constraint. Every sentence carries distinct information with no restatement of the name or schema.

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

Completeness5/5

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

For a single-parameter terminal render tool with an output schema, the description covers the prerequisite ordering, the validation invariants, the internal aggregation behavior, and the rendering constraint. Nothing an agent needs in order to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100% and the schema itself carries the description for the single 'results' array, so the baseline would be 3. The description still adds meaning by specifying the consistency invariants across the 1-12 result objects and the 'pass unchanged, in search order' contract, which the schema does not encode.

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 specific verb and resource ('Render one final Flaut.Travel route-price widget') and immediately scopes it relative to the sibling 'search_route_prices' calls it depends on. An agent can distinguish this terminal render step from the search tools without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit sequencing ('after all search_route_prices calls are complete', 'call this tool exactly once') and a precise consistency contract: route, currency, market, locale, one-way, sorting and unique must match across inputs, while departure dates, pages, limits and direct-only may differ. It also states the input must be passed unchanged, leaving nothing to inference.

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.

Resources