Skip to main content
Glama

findNearestAvailability

Read-only

Find the nearest available dates when requested dates are not available. Searches for alternative check-in dates within a specified window and can adjust length of stay.

Input Schema

NameRequiredDescriptionDefault
stayIdYesThe unique identifier of the stay
maxLengthOfStayNoMaximum length of stay in days (optional)
minLengthOfStayYesMinimum length of stay in days
preferredCheckInYesPreferred check-in date in ISO format (YYYY-MM-DD)
searchWindowDaysNoNumber of days before and after preferred date to search (default: 90)

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=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that – it searches a window and may adjust length of stay – which is non-obvious for a read query, though it doesn't state the return shape.

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 sentences, front-loaded with the core purpose and followed by the mechanism. No filler; every clause carries information.

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 tool with a fully documented schema and no output schema, the description covers purpose, trigger condition, and search behavior adequately. The one gap is that it doesn't hint at what is returned (e.g., candidate dates and adjusted stays), which the absent output schema leaves unstated.

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 all five parameters are already documented, including the default 90-day window and ISO date format. The description adds no syntax or format detail beyond the schema, so the baseline of 3 is appropriate.

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?

States a specific verb+resource: finding nearest available dates and searching alternative check-in dates with LOS adjustment. It is clearly a fallback/alternative-finder distinct from simple availability checks, but it doesn't explicitly name siblings like checkStayAvailability or hasAvailabilityInWindow to sharpen the distinction.

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?

Gives a clear triggering condition: 'when requested dates are not available.' This tells the agent when to reach for it, but it names no alternatives or exclusions, so the agent must infer that direct availability checks are a separate tool.

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.