Skip to main content
Glama

Compare lodging + meals across cities

compare_city_costs
Read-onlyIdempotent

Compare covered cities for a stay of N days, or for exact dates. Returns per-city lodging and meal components, a lodging + meals subtotal, the assumptions and formulas used, observed ranges, sample sizes, source coverage, freshness, and the categories that are explicitly NOT included. This is not a cost-of-living total.

Input Schema

NameRequiredDescriptionDefault
daysNoNumber of days/nights to price. Ignored in exact mode.
roomsNo
citiesNoCity IDs such as 'th-bangkok'. Call get_dataset_coverage for the covered list.
peopleNo
checkinNoExact mode: use with checkout.
checkoutNo
countriesNoISO 3166-1 alpha-2 country codes, e.g. ['TH','VN'].
componentsNoWhich components the subtotal covers. Pass ['meals'] to get a complete meals-only answer for cities that have meal prices but no lodging price, instead of a null lodging+meals subtotal. The returned subtotal_label always names exactly what the figure contains.
lodging_typesNo
freshness_daysNoOnly use observations collected within this many days.
min_review_countNo
min_rating_fractionNo
meals_per_person_per_dayNoCaller's assumption. BudgetAtlas does not infer how often someone eats out.

Output Schema

NameRequiredDescriptionDefault
metaYes
modeYes
citiesYes
requestYes
currencyYes
suggestionsYes
no_data_reasonYes
unknown_citiesYes
ranked_by_subtotalYes
excluded_categoriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/closed-world, and the description adds substantive context beyond them: assumptions and formulas are surfaced, plus sample sizes, source coverage, freshness, observed ranges, and explicitly excluded categories. That is unusually rich disclosure of what the response will and won't tell you.

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?

Dense, front-loaded sentences; the mode statement comes first and the exclusion plus output inventory follow with no filler. Every clause carries information the agent would otherwise have to infer.

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 13 optional parameters, an output schema present, and only 54% schema description coverage, the description does well on output expectations and scope but leaves several input parameters unexplained. Slightly short of fully complete, but well beyond minimum viability.

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 54% and the description only reinforces a couple of fields (days vs exact-date mode, and the components fallback semantics are already in the schema). Many parameters — rooms, people, min_review_count, min_rating_fraction, lodging_types — receive no added meaning from the description, so compensation for the coverage gap is partial.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb and resource ('Compare covered cities for a stay of N days, or for exact dates') with explicit scope negation ('This is not a cost-of-living total'). It distinguishes itself from a general cost-of-living style tool, though it never names compare_lodging_months or summarize_costs directly.

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 two pricing modes (N days vs exact dates) tell the agent which inputs select which behavior, and the schema points to get_dataset_coverage for valid cities. But it gives no guidance on when to pick this over compare_lodging_months or summarize_costs, so usage is implied rather than delineated.

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