Skip to main content
Glama

agoda_hotels_search

Read-only

Search Agoda hotels by numeric city ID and return matching property IDs with listing URLs. Use agoda_hotel_detail for a property or agoda_homes_search for vacation rentals.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "agoda_hotels_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoFree-text city name, resolved to a numeric city id via Agoda's own destination-suggestion service. Ignored when city_id is also supplied.
pageNo1-indexed result page. Defaults to 1.
limitNoResults per page. Defaults to 10, maximum 50.
city_idNoNumeric Agoda city id, e.g. 9395 for Bangkok. Discoverable from a hotel detail response's address.city.id field, or from Agoda's own site. Either city_id or city is required; city_id takes precedence when both are supplied.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and non-idempotent behavior, so the safety profile is covered. The description adds real value beyond that by disclosing that results are property IDs plus listing URLs rather than bookable rates or full details, which tells the agent it must chain into a detail or rates tool. It does not mention paging limits or result-count behavior, though the schema already documents the default and maximum page size.

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 short sentences: capability and return shape first, alternative routing second. No filler, no restatement of the tool name, and the sibling steering is placed where it is most useful.

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 an output schema present and full parameter documentation, the description only needs to convey purpose, return shape, and routing, and it does all three. The remaining gap is the unmentioned free-text 'city' path, which the description implicitly overshadows with its numeric city-ID framing.

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%, with all four parameters described in detail including the city/city_id precedence rule and the page/limit defaults. The description's only added parameter context is that city lookup is numeric. Baseline 3 applies because the schema does essentially all of the semantic work.

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?

The description names a specific verb and resource (search Agoda hotels) plus the discovery mechanism (numeric city ID) and the return shape (matching property IDs with listing URLs). It is easy to distinguish from agoda_hotel_detail and agoda_homes_search. It loses a point for framing the tool as purely city-ID based when the schema also supports a free-text 'city' parameter, which leaves a slight mismatch with the actual input surface.

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?

Two alternatives are named with the condition that selects each: agoda_hotel_detail for a single property and agoda_homes_search for vacation rentals. That is genuine routing guidance. It stops short of stating when this tool is inappropriate within the Agoda family (for example, whether it is preferred over hotels_search or when to page versus narrow by city).

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.