Skip to main content
Glama

Find homes free for a stay

get_availability
Read-only

Which homes are free from checkin to checkout (checkout night not counted), across every property this account can see — its own and those shared with it, including an agency's view of its owners' calendars. Occupancy only: never who is staying. A home let room by room lists its free rooms. quote.total (the stay's price, before extras) appears only where the owner shared the nightly rates; a home whose nights the owner closed is left out. Use it for "do we have anything in Marbella from the 3rd to the 7th?". Always pass lang with the language of the user's message. The user sees the result as a screen: call this again whenever they ask to see these, even if you already have the data.

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": {
      "checkin": "<checkin>",
      "checkout": "<checkout>"
    },
    "name": "get_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoThe language the user is writing in, so the cards shown with the answer use it (not sent to the API)
placeNoCity, region or part of the address, e.g. "Marbella" (accents ignored)
guestsNoGroup size: leave out homes known to take fewer (homes with no capacity set are kept)
checkinYesFirst night, YYYY-MM-DD
checkoutYesDeparture day, YYYY-MM-DD (at most 90 nights after checkin)
maxTotalNoLeave out homes whose stay costs more than this (homes with no price shared are kept)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint=true and openWorldHint=false, the description discloses real behavioral detail: the checkout night is not counted, room-by-room homes list free rooms, quote.total only appears where the owner shared nightly rates, and homes with closed nights are omitted. It also warns that the user sees a screen result rather than raw data, which materially affects how the agent should respond.

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 most decision-critical facts (scope, date semantics, occupancy-only) are front-loaded, and each sentence carries information the agent needs. It is dense but longer than necessary in places, with the result-display note stated as a full clause that could be tighter.

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 steps in to explain what the response contains and what is silently excluded (no quote when rates are not shared, closed homes dropped entirely), which is exactly the return-value context an agent needs. Given six parameters and a read-only annotation, nothing material is left unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema carries the parameter definitions and a baseline 3 is the floor. The description adds genuine meaning on top: checkout night is excluded from the stay, lang should always be supplied in the user's own language and is not sent to the API. It does not add further detail on place, guests, or maxTotal beyond what the schema already states.

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 description opens with a specific verb and resource — which homes are free between checkin and checkout — and immediately scopes it ('across every property this account can see… including an agency's view of its owners' calendars'). It also distinguishes itself from related lookups by stating 'Occupancy only: never who is staying', which separates it from guest/booking tools like get_booking_mailbox.

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?

It gives a concrete triggering question ('do we have anything in Marbella from the 3rd to the 7th?') and an explicit re-invocation rule ('call this again whenever they ask to see these, even if you already have the data'), plus 'Always pass lang'. It does not name a sibling alternative or an explicit when-not-to-use condition, so it stops short of full routing 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.