Skip to main content
Glama

compare_hotels

Read-onlyIdempotent

Compare 2-4 hotels side by side: Comfort Score breakdown, price, strengths, caveats, the filters where they differ most, and a verdict (best comfort, cheapest, best value).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hotel_idsYes2-4 hotel ids from search_hotels.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuine value by disclosing what the comparison returns (a structured verdict plus strengths/caveats), which helps the agent decide whether to spend a call on it. It stops short of noting cost or latency, so not a 5.

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?

One sentence, front-loaded with the action and cardinality, then the payoff contents. No filler; every clause tells the agent something it would otherwise have to guess.

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?

With no output schema, the description carries the full burden of describing return values and does so concretely, listing each output section. Combined with annotations covering safety and a 100%-covered single parameter, nothing needed to invoke this correctly is missing.

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, including the '2-4 hotel ids from search_hotels' provenance. The description's '2-4 hotels' restates the schema's minItems/maxItems without adding format or ID-source detail, so 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') plus resource ('hotels'), the cardinality (2-4), and enumerates exactly what the comparison produces (Comfort Score breakdown, price, strengths, caveats, differing filters, verdict). An agent can distinguish this from get_hotel (single hotel) or search_hotels (discovery) 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 Guidelines3/5

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

The 2-4 constraint implies the use case (side-by-side evaluation of a shortlist), but the description never states when to prefer this over get_hotel or find_similar_hotels, nor any prerequisites. Usage is inferable but not spelled out, and no alternatives are named.

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