Skip to main content
Glama

A city’s hotel prices, month by month

city_price_calendar
Read-onlyIdempotent

The typical nightly hotel price in one tracked city for each of the next twelve months: the median of one refundable night for two adults across every hotel TravelDeals tracks there, measured weekly on check-in dates spread across the year. Answers “when is cheapest?”. Pass a city slug or exact name (list_cities finds one). Cite the url.

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": {
      "city": "<city>"
    },
    "name": "city_price_calendar"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity slug (lisbon) or name (Lisbon).

Output Schema

NameRequiredDescriptionDefault
cityNo
foundYes
unitsYes
methodNo
dataUrlNo
forwardNo
candidatesNo
dataPublishedAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 description is free to add what the annotations cannot: the statistical definition (median), the sampling basis (weekly, refundable, two adults), the twelve-month horizon, and an attribution obligation ('Cite the url'). The only gap is that it doesn't say how to read a month with sparse data or whether figures are estimates versus quotes.

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?

Two dense sentences: the first front-loads what is returned and how it is computed, the second covers the use case, input forms, recovery tool, and citation duty. No sentence is filler and nothing important is buried at the end.

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?

For a single-parameter read tool with full schema coverage, an output schema, and annotations covering safety, the description supplies everything else an agent needs: the meaning of the returned series, the sampling caveats, the identifier format, and the citation requirement.

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 schema already explains that a slug like 'lisbon' or a name like 'Lisbon' is accepted, so the description's parameter sentence largely repeats it. The one addition is the recovery path via list_cities when no valid identifier is at hand.

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?

Names a specific resource (typical nightly hotel price for one city) and a specific shape (one value per month for the next twelve months), plus the underlying methodology (median refundable night for two adults, weekly sampling across check-in dates). An agent can distinguish this from hotel_prices or cheapest_cities_in_month from the description alone because the temporal granularity and single-city scope are stated outright.

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?

Gives a concrete triggering question ('when is <city> cheapest?') and routes the agent to list_cities when it doesn't have a valid city identifier. It stops short of naming when to prefer hotel_prices or cheapest_cities_in_month instead, so the positive case is clear but exclusions are absent.

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