Skip to main content
Glama

Occupancy, ADR and RevPAR

occupancy
Read-only

Per night for a date range (up to 31 days): rooms available (out of order taken off), rooms sold, occupancy %, room revenue, ADR, RevPAR (room revenue ÷ all rooms, the night audit's figure); a totals row. 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": "occupancy"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesLast night YYYY-MM-DD
fromYesFirst night YYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare a safe read (readOnlyHint true, destructiveHint false, openWorldHint false), so the bar is lower, and the description still adds real context: out-of-order rooms are deducted from rooms available, RevPAR is computed over all rooms using the night-audit figure, and sign-in is mandatory. It stops short of describing behavior on empty date ranges or data freshness.

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?

The metric list is front-loaded and the operational notes (31-day cap, sign-in requirement) are placed after, with no filler sentences. It is dense and jargon-heavy (ADR, RevPAR, night audit) but 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 two-parameter report tool with no output schema, the description effectively serves as the return-value contract by naming each field and how the two derived metrics are computed. Remaining gaps — behavior for nights with no data or timezone of the date range — are minor for a read-only tool.

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% and both parameters already document 'First night'/'Last night' with a date pattern. The description still adds meaning the schema lacks: the two dates define an inclusive per-night range bounded at 31 days, which is a real invocation constraint not expressed anywhere in the schema.

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 enumerates the exact per-night metrics returned (rooms available, rooms sold, occupancy %, room revenue, ADR, RevPAR) plus a totals row, so the agent knows precisely what kind of report this is. It never states an explicit verb like 'get'/'report' and does not distinguish itself by name from siblings such as 'availability' or 'morning_summary', which keeps it short of a 5.

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?

Useful constraints are given — the date range is capped at 31 days and the owner's sign-in is required — which effectively describes preconditions. However, there is no statement of when to choose this over 'availability', 'rates' or 'morning_summary', so the agent must infer the choice from the metric list alone.

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