Skip to main content
Glama

Restrictions calendar

restrictions
Read-only

The live restrictions for up to 31 days, by hotel, room type or plan: closed, no arrivals, no departures, min and max nights, booked-ahead limits. Viewing only. Needs the owner's sign-in.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "restrictions"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesLast night YYYY-MM-DD
fromYesFirst night YYYY-MM-DD
planNoRate plan code, optional
room_typeNoRoom type code, optional

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description need not re-argue safety, and it doesn't just repeat them. Instead it adds behavior the annotations lack: the data is 'live', the query window is capped at 31 days, owner-level authentication is required, and the returned restriction categories are enumerated. It stops short of describing response shape or what happens if the request exceeds 31 days.

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?

Front-loaded with the resource and its scope, then two short sentences for mode and auth. Dense but readable, with essentially no filler. The middle clause is a long enumeration but each item is informative.

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 four-parameter tool with no output schema, the definition covers purpose, window limit, queryable dimensions, auth requirement, and the categories of restriction returned. What is missing is whether results are grouped per date/room/plan and what an empty result means, but the description is otherwise sufficient to call the tool correctly.

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 from/to/plan/room_type semantics are already documented; baseline is 3. The description adds marginal meaning by grouping the query dimensions (hotel, room type, plan) and by imposing a 31-day ceiling on the from/to range that the schema pattern alone does not convey. 'Hotel' is mentioned in the description but is not a parameter, which slightly muddies what the agent can actually filter on.

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?

Names the resource (restrictions), its scope (up to 31 days, by hotel/room type/plan), and enumerates exactly what is returned: closed, no arrivals, no departures, min/max nights, booked-ahead limits. An agent immediately knows this is a restriction-calendar read. It does not explicitly distinguish itself from the 'availability' sibling, which is the most likely confusion point.

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?

'Viewing only. Needs the owner's sign-in.' establishes orientation (read, not edit) and an auth prerequisite, which is real usage context. However, there is no explicit when-to-use guidance relative to alternatives such as 'availability', so the agent must infer that this returns restriction rules rather than open inventory.

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