Skip to main content
Glama

Search hotels on Flamaz

search_hotels
Read-onlyIdempotent

Search real hotels that can be booked on Flamaz, with live prices for exact dates. Returns up to 6 hotels with the price per night and the total for the stay, star rating, guest rating, address, free cancellation and breakfast information, a photo and a link to view and book the hotel on flamaz.com with the same dates and guests. By default they are a mix of good-value and top-rated hotels (the closest ones when the user wants something central or near a place); when the user wants the cheapest options or something cheaper, call it with cheapest_first. Use it when the user asks for hotels or accommodation in a city for given dates, or for the price of a specific hotel. check_in and check_out are required: prices exist only for exact dates. Pass only what the user said (guests, children and their ages, rooms, budget, the cheapest options, stars, free cancellation, breakfast, central location, a place to be near, a hotel name). Also pass language, the language the user is writing in, so the links open flamaz.com in that language.

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>",
      "check_in": "<check_in>",
      "check_out": "<check_out>"
    },
    "name": "search_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesThe destination: the city where the user wants to stay (not where the user is now), in its usual Latin-alphabet form, e.g. "Barcelona", "Rome", "Tokyo".
nearNoA landmark, venue or street of the city the user wants to stay near, by its usual name in the Latin alphabet or in the local language, e.g. "Sagrada Familia".
roomsNoNumber of rooms, only if the user said it. Default 1.
adultsNoNumber of adults, only if the user said it. Default 2.
centralNotrue only if the user wants something central.
countryNoThe destination city's country as an ISO 3166-1 alpha-2 code, e.g. "ES", "MX", "CL", "GB". Pass it whenever you know it: many city names exist in several countries (Santiago, Córdoba, Valencia, Mérida, Granada, León).
check_inYesCheck-in date, YYYY-MM-DD. Today or later.
childrenNoNumber of children under 18, only if the user mentioned children.
languageNoThe language the user is writing in, as a language code such as "es", "en", "zh", "fr" or "pt-BR" ("zh-TW" for Traditional Chinese). The links open flamaz.com in that language.
check_outYesCheck-out date, YYYY-MM-DD, after check_in (at most 30 nights).
min_starsNoMinimum star rating, only if the user asked for it.
hotel_nameNoThe name of a specific hotel, only if the user asks about one.
children_agesNoAge of each child (0 for a baby), only if the user said it. Ages change the price.
cheapest_firstNotrue only if the user wants the cheapest options or asks for something cheaper. Flamaz then compares the prices of many more hotels in the area and returns the cheapest first. They can be hostels, guesthouses or campsites far from the center; each result includes its distance.
free_cancellationNotrue only if the user wants free cancellation.
breakfast_includedNotrue only if the user wants breakfast included.
max_price_per_nightNoMaximum budget per night in euros, only if the user gave a budget. If they gave it in another currency, convert it to euros first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the read-only annotations, it discloses that results are capped at six, the default ranking is a good-value/top-rated mix biased toward nearby hotels when central or near is requested, and cheapest_first expands the comparison set and may return hostels, guesthouses, or campsites with distances. It also explains that prices require exact dates and that links open in the requested language.

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

Conciseness4/5

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

The description is front-loaded and logically ordered: purpose, return shape, default ranking, usage, required dates, filter guidance, and language. It is fairly long, and the long list of user-mentioned filters partly repeats schema-level guidance, but the length is largely justified by the 17-parameter scope.

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 17-parameter search tool with no output schema, the description is complete: it explains return fields and count, default behavior, the cheapest_first mode, date requirements, language handling, and how to avoid inventing filters. An agent has enough information to invoke it correctly.

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 documents all 17 parameters in detail, including budget conversion, children's ages, and cheapest_first behavior. The description reinforces a few points such as required dates, passing only what the user said, and language for links, but adds little parameter meaning beyond the schema.

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?

The opening sentence names the specific verb ('Search'), resource ('hotels'), platform ('Flamaz'), and scope ('live prices for exact dates'), which clearly distinguishes it from search_activities and search_events. It also states the result limit and key return fields, so an agent knows exactly what the tool does.

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 description gives clear when-to-use guidance: hotel/accommodation requests for a city and dates, or price checks for a named hotel. It also explains the cheapest_first alternative and that check_in/check_out are mandatory, but it does not state when not to use the tool or explicitly name sibling tools as alternatives.

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