Skip to main content
Glama

Chata Valanda

Check availability

check_availability
Read-only

Whether the cottage can be booked for a stay. Dates are ISO (YYYY-MM-DD); "departure" is the day the guests leave, so 12 to 15 March is three nights.

When not available, "reason" says why: occupied (taken), min_nights or max_nights (stay too short or too long; "minNights" gives the minimum), full_week_required (this season is sold only in full weeks from its changeover day), no_pricing (the cottage is closed then), past_arrival, too_far_ahead (arrival more than two years ahead), phone_only_today (same-day arrival is booked by phone only), invalid_range.

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": {
      "arrival": "<arrival>",
      "departure": "<departure>"
    },
    "name": "check_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
arrivalYesfirst day, YYYY-MM-DD
departureYesday of departure, YYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true and openWorldHint=false, so the safety profile is already covered. The description adds real value by enumerating every unavailability reason (occupied, min_nights, full_week_required, past_arrival, too_far_ahead, phone_only_today, invalid_range), which effectively documents the response shape — though no output schema exists, so this is the only source for it. It still omits the available-case return shape (e.g., whether a total price or nights count comes back).

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?

Purpose sits in the first clause, then date semantics, then the failure taxonomy — properly front-loaded. The reason list is long but every entry maps to an output token the agent may need to interpret, so nothing is padded.

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 no output schema, the description carries the burden of explaining results, and it does so for the negative case via the reason catalog. Completeness for a two-param read-only tool is high; the missing piece is describing what a successful availability response contains.

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 baseline is 3, but the description earns more: it clarifies that departure is the day guests leave and that 12–15 March is three nights, resolving an ambiguity the schema's "day of departure" wording leaves open. That is genuine meaning added beyond the parameter descriptions.

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?

"Whether the cottage can be booked for a stay" is a specific question the tool answers, distinct from cottage_info and price_quote by implication. It never explicitly contrasts with those siblings, so an agent must infer the boundary, but the check-availability purpose is unmistakable.

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 nature of the tool — you check availability before booking — and the reason codes hint at failure conditions. But there is no stated when-to-use, when-not-to-use, or pointer to price_quote for pricing, so an agent gets context rather than 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.

Resources