Skip to main content
Glama

hasAvailabilityInWindow

Read-only

Efficiently checks whether a stay has ANY open booking window of a minimum length within a date range, without checking every single day. Use this to filter search results down to stays with real availability somewhere in the near future (e.g. 'available at all in the next 6 months for a month-long stay'), instead of calling checkStayAvailability repeatedly for individual dates.

Input Schema

NameRequiredDescriptionDefault
stayIdYesThe unique identifier of the stay
fromDateYesStart of the search window, ISO format (YYYY-MM-DD). Usually today's date.
windowDaysNoHow many days forward from fromDate to search (default: 180, i.e. 6 months)
minLengthOfStayYesMinimum length of stay in days required (e.g. 30 for a month-long stay)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and destructiveHint, so the safety profile is covered. The description adds useful behavioral context: it efficiently finds ANY qualifying window without checking every day, which clarifies the algorithm and result semantics.

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?

The definition is two tight sentences with the core purpose and the key alternative front-loaded. Every sentence earns its place and there is no redundant text.

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 read-only availability check with no output schema, the description gives enough context to invoke it correctly and interpret the result as a yes/no availability test. It could explicitly state the return shape, but the annotations cover the safety profile and the use case is clear.

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 the input schema already documents all four parameters. The description reinforces the relationship between date range and minimum length of stay via an example, but adds no new parameter syntax or format details 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 description states a specific verb and resource: it checks whether a stay has any open booking window of a minimum length within a date range. It clearly distinguishes itself from checking individual dates via checkStayAvailability.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It explicitly says to use this to filter search results to stays with real availability in the near future, gives a concrete example, and names the alternative it replaces: repeated calls to checkStayAvailability.

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.