Skip to main content
Glama

Compare travel options and payment choices

compare_quotes
Read-onlyIdempotent

Arithmetic on quotes you already have; it looks nothing up. cash (default) totals flight, stay and extra costs per traveler. The other modes (awards, award_options, journeys, earning_plan, split_transfers) each take one object: call once with describe_mode=true to get that mode's input schema and rules. Nothing is ranked unless you pass the traveler's explicit objective. Long lists come as tables that the reply's tables field explains.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compare_quotes"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoComparison mode (default cash).cash
optionsNocash mode: two or more sourced option bundles.
currencyNocash mode: shared ISO currency code (e.g. USD).
objectiveNocash mode only. Omit to keep input order.
earning_planNoearning_plan mode only. Get its shape with mode=earning_plan, describe_mode=true.
award_optionsNoaward_options mode only. Get its shape with mode=award_options, describe_mode=true.
describe_modeNotrue returns the input schema and rules for `mode` and compares nothing. Do this once before first using a mode other than cash.
max_per_personNocash mode: optional max cash per traveler.
traveler_countNocash mode: travelers covered by options.
split_transfersNosplit_transfers mode only. Get its shape with mode=split_transfers, describe_mode=true.
award_comparisonNoawards mode only. Get its shape with mode=awards, describe_mode=true.
journey_comparisonNojourneys mode only. Get its shape with mode=journeys, describe_mode=true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real behavior beyond them: describe_mode is a schema-only call that 'compares nothing', ranking is suppressed without an explicit objective, and long results are returned as tables explained by the reply's tables field. What it does not cover is error behavior or what a non-table response looks like.

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 sentences, each carrying distinct load: scope, default mode, the describe_mode workflow for other modes, ranking condition, and output shape. The most important constraint — that no lookup happens — is front-loaded in the first clause, and nothing is repeated from the schema verbatim.

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 12-parameter tool with nested objects and no output schema, the description does the necessary work: it explains the shared mode-object pattern, points to describe_mode as the way to discover each sub-schema, and describes the tables field so the return shape is not a mystery. It is slightly thin on the cash-mode-only parameters collectively, but the schema covers those at full coverage, so the description is nearly complete.

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 100%, so the baseline is 3 and the schema already explains currency, traveler_count, max_per_person, describe_mode and the per-mode objects. The description adds some meaning beyond the schema, notably that objective controls whether ranking happens at all (the schema only says 'Omit to keep input order'). That is useful but not extensive, so it stays at baseline rather than rising further.

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?

The description opens with a precise scope statement: 'Arithmetic on quotes you already have; it looks nothing up', which tells the agent this tool computes on supplied data rather than fetching. It then names the default mode and its computation ('cash (default) totals flight, stay and extra costs per traveler') and enumerates the other modes. The 'looks nothing up' clause draws a clean boundary against lookup-oriented siblings such as search_travel and find_sources.

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?

Strong operational guidance: the default mode is stated, and the agent is told to 'call once with describe_mode=true' before first using any non-cash mode, which prevents malformed calls to the opaque nested objects. It also states the condition for ranking ('Nothing is ranked unless you pass the traveler's explicit objective'). The only gap is that it never names an alternative tool for the lookup case, leaving the agent to infer which sibling handles fetching.

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