Skip to main content
Glama

MAQAMI Travel

getPriceIndexCity

Read-onlyIdempotent

Overview

Retrieve aggregated historical price index data for all hotels in a specific city. Returns average per-night prices aggregated by calendar day across all hotels in the city, providing city-level pricing trends.

⚠️ Beta Feature: This endpoint is currently in beta. The API structure and behavior may change in future versions.

Pricing: $0.05 per request

Rate Limiting: This endpoint is rate-limited to 10 requests per minute for both sandbox and production API keys. Exceeding this limit will result in a 429 Too Many Requests response.

When to Use

  • City-level price analysis - Analyze average pricing trends for an entire city

  • Market research - Compare pricing across different cities

  • Destination pricing - Get aggregated pricing data for a destination

  • City pricing dashboards - Build visualizations of city-level price trends

What You Get

  • City-level aggregation - Average prices aggregated across all hotels in the city (up to 1,000 hotels)

  • Per-night prices - Average price per night for each calendar day

  • Daily aggregation - One entry per day with aggregated pricing data

  • Future dates only - Only returns data for future check-in dates (defaults to today onwards)

Key Features

  • Automatic hotel discovery - Automatically finds hotels in the specified city (up to 1,000)

  • City-level aggregation - Prices are averaged across all hotels in the city, not per hotel

  • Per-night pricing - Prices are normalized to per-night rates

  • Future-focused - Only queries check-in dates in the future by default

  • Flexible date ranges - Optional date filtering with sensible defaults

Parameters

  • countryCode (required): ISO-2 country code (e.g., 'US', 'GB', 'FR')

  • cityName (required): City name (case-insensitive)

  • fromDate (optional): Start date in YYYY-MM-DD format. Defaults to today.

  • toDate (optional): End date in YYYY-MM-DD format. Defaults to 1 year from today.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toDateNoEnd date for the price index query in YYYY-MM-DD format. Defaults to 1 year from today if not provided.
cityNameYesCity name (case-insensitive)
fromDateNoStart date for the price index query in YYYY-MM-DD format. Defaults to today if not provided. Only future check-in dates are queried.
countryCodeYesISO-2 country code (e.g., 'US', 'GB', 'FR')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description layers on substantial extra behavior: beta instability warning, $0.05 per-request pricing, a 10 req/min rate limit with the resulting 429 response, the 1,000-hotel aggregation cap, and the future-check-in-dates-only constraint. This is exactly the kind of operational context annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and well-headed, but the content is padded: city-level aggregation, per-night pricing, and future-dates-only are each stated in both 'What You Get' and 'Key Features', so a meaningful share of the text is redundant rather than earning its place.

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 return-value burden and does so well: it specifies averaged per-night prices, one entry per calendar day, aggregation across up to 1,000 hotels, and future-only dates. Combined with cost and rate-limit disclosure, an agent has everything needed to call and interpret it.

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%, so all four parameters (including defaults and format) are already documented in the schema. The description's 'Parameters' section largely restates that, adding only the 'only future check-in dates are queried' nuance, 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 and resource ('Retrieve aggregated historical price index data for all hotels in a specific city') and explicitly scopes it as city-level aggregation 'not per hotel', which distinguishes it from the sibling getPriceIndexHotels without requiring the schema.

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?

The 'When to Use' section gives four concrete scenarios (city-level analysis, market research, destination pricing, dashboards), which is clear positive context. However, it never names the obvious alternative getPriceIndexHotels or states when this tool should NOT be used instead, so it stops short of full when/when-not guidance.

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