Skip to main content
Glama

Compare tours

compare_tours
Read-onlyIdempotent

Compare 2 to 4 TripWays tours side by side by bokun_id: from-price, duration, rating, cancellation type, hotel pickup, languages, inclusions, and exclusions. The result also names the tour with the lowest from-price, the shortest duration, the best rating (10+ reviews), and which have free cancellation. Ids that are not bookable tours come back in not_found. For group totals on a date, use check_availability and get_price_quote.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bokun_idsYesTwo to four tour ids (the number in tripways.com/t/{id}).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
noteNo
errorNoPresent when ok is false. code: tour_not_found, destination_not_found, destination_ambiguous, or unpriced. message is written for the traveler.
toursNoOne row per tour found, in the order asked.
not_foundNoIds that are not bookable tours.
highlightsNobokun_id of the tour with the lowest from-price, the shortest duration, and the best rating (10+ reviews), and the ids with free cancellation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description only needs to add operational detail — and it does: non-bookable ids surface in not_found, and the comparison derives lowest price, shortest duration, best rating gated at 10+ reviews, and free-cancellation flags. It does not mention any rate limits or permission requirements, but none are implied for this read-only 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?

Front-loads the core action and scope, then the derived outputs, then the not_found edge case, then the alternative routing — four tight sentences with no filler despite the long field list.

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?

An output schema exists, so return structure need not be repeated; the description still covers the surprising edge case (not_found for non-bookable ids) and the derived-comparison logic. Combined with full schema coverage and rich annotations, an agent has everything needed to invoke it correctly.

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 coverage is 100% and the single parameter is fully documented in-schema (pattern ^[0-9]+$, min/max 2-4, tripways.com/t/{id} mapping). The description restates 'by bokun_id' and the 2-to-4 bound without adding new semantics, so the baseline 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?

States a specific verb (compare), resource (TripWays tours), scope (2 to 4, keyed by bokun_id) and enumerates exactly which attributes are compared. An agent can distinguish this from get_tour_details or search_tours without opening 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 Guidelines5/5

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

Explicitly routes the adjacent use case away: 'For group totals on a date, use check_availability and get_price_quote.' It also implies the when-to-use case (multi-tour side-by-side comparison) and the 2-4 id bound, leaving little 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