Skip to main content
Glama

Compare markets

compare_markets
Read-onlyIdempotent

The same sailing priced in every country market its cruise line sells it in, cheapest first, with a EUR conversion and the fares per cabin type. Shows where the same cruise costs less. Counts as one call. Fares marked stale are never named the cheapest.

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": {
      "cruise_id": "<cruise_id>",
      "company": "<company>"
    },
    "name": "compare_markets"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyYesCruise line slug, e.g. royal-caribbean, msc, ncl.
cruise_idYescruise_id of one sailing, as returned by search_cruises.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the baseline is met; the description goes further by disclosing result ordering (cheapest first), currency normalization to EUR, per-cabin-type fare breakdown, quota cost ("Counts as one call"), and a non-obvious data-quality rule that stale fares can never be ranked cheapest. That stale-fare rule is real behavioral context an agent could not get from structured fields, though output shape and error behavior remain unstated.

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?

Three short sentences, front-loaded with what the tool returns before the qualifying rules. The quota note and stale-fare rule are each a single clause with no filler or repetition.

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?

With no output schema, the description carries the return-value burden and does so well by naming the dimensions returned (per-market fares, EUR conversion, per-cabin-type breakdown) and the sort order. Minor gaps remain: it does not say what happens when a market has no fares or how a cruise_id/company mismatch is handled.

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% and both parameters are documented, including that cruise_id comes from search_cruises and the company enum. The description adds only indirect meaning — that "company" determines which country markets are queried — so the baseline of 3 applies.

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 same sailing priced in every country market its cruise line sells it in" states a specific resource (one sailing's fares) and operation (cross-market comparison), and "Shows where the same cruise costs less" makes the intent unambiguous. An agent can distinguish this from get_cruise or get_price_history without inspecting any schema.

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

Usage Guidelines3/5

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

The use case is implied clearly — comparing the same sailing across country markets to find a cheaper fare — and "Counts as one call" signals quota impact. However, it never names an alternative such as get_cruise or get_coverage, nor states when *not* to use this over a plain single-market lookup, leaving the routing decision 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