Skip to main content
Glama

search_hotels

Find hotel rooms and offers for a city and date range, returning the merchant artifact and payment receipt; each call costs $0.005 in USDC via x402.

Instructions

Search hotel rooms and offers for a city and date range. Costs $0.005 per call, paid in USDC over x402 to x402-hotel-search. Returns the merchant's artifact and the payment receipt.

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": {
      "cityCode": "<cityCode>",
      "checkIn": "<checkIn>",
      "checkOut": "<checkOut>"
    },
    "name": "search_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
railNoPayment rail for this call. Overrides the configured default (auto). auto = whichever rail this agent holds a key for.
adultsNoGuest count, default 2
checkInYesYYYY-MM-DD
checkOutYesYYYY-MM-DD
cityCodeYesIATA city code, e.g. NYC

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it discloses a per-call price ($0.005), the payment mechanism (USDC over x402 to x402-hotel-search), and what comes back (merchant artifact plus payment receipt). Gaps remain around failure/refund behavior and whether payment is charged on an empty result, but the non-obvious commercial mechanics are surfaced.

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?

Three short sentences with zero filler: purpose first, then cost/payment, then return contents. Nothing is repeated and the most decision-relevant fact (it costs money) is front-loaded after the purpose.

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?

For a 5-parameter, 3-required tool with no output schema and no annotations, the definition covers purpose, pricing, payment routing, and the shape of the response. It could say more about error or payment-failure outcomes, but nothing essential to making the call 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 description coverage is 100%, so cityCode, checkIn, checkOut, adults, and the rail enum are already documented in the schema. The description adds no format or constraint detail beyond that, which is the expected baseline when the schema does the work.

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 ("Search") and resource ("hotel rooms and offers") scoped by city and date range. The resource is unambiguous against siblings like search_flights and search_places, so an agent can select it without opening 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 Guidelines3/5

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

Usage is implied by the scope (city + date range for hotel rooms), and the cost/payment note signals this is a paid call, but there is no explicit when-to-use, when-not-to-use, or comparison to alternatives such as booking or place lookup. An agent must infer the routing decision.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.