Skip to main content
Glama

Check availability

check_availability
Read-onlyIdempotent

Whether a stay is free for these dates, from its live calendar. When it isn't, the nearest free stays of the same length.

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": {
      "stay_id": "<stay_id>",
      "check_in": "<check_in>",
      "check_out": "<check_out>"
    },
    "name": "check_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
stay_idYesThe stay's id (stay_id from search_stays).
check_inYesCheck-in date, YYYY-MM-DD.
check_outYesCheck-out date, YYYY-MM-DD (the morning the guest leaves).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the description need not restate safety. It does add genuinely non-obvious behavior: results come from a live calendar, and on a negative result the response includes nearest free stays of the same length — useful context about what a 'no' looks like.

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?

Two short sentences with the primary question front-loaded and the fallback behavior second. There is no filler, though the opening is a sentence fragment and the phrasing is slightly compressed.

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 a full output schema, rich annotations, and fully documented parameters, the description only needs to convey purpose and any surprising behavior — both of which it does. A note on what happens with invalid or inverted date ranges would close the remaining gap.

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 all three parameters carry descriptions, so the schema does the heavy lifting. The description adds only the derived notion of stay length from the date range, which is mild added meaning rather than parameter-level detail.

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 states a specific question the tool answers — whether a stay is free for given dates — and distinguishes it from siblings like get_price or get_stay by naming the live calendar as the source. It is phrased as a noun clause rather than a verb+resource phrase, so the action verb ('check') is only implied.

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 question form: an agent should call it to verify date availability before booking. There is no explicit when-to-use/when-not guidance, no mention of prerequisites, and no named alternative for related needs such as pricing or searching.

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