Skip to main content
Glama

Hotel operating metrics (USALI)

calc_hotel_metrics
Read-onlyIdempotent

Occupancy, ADR, RevPAR, TRevPAR, and a USALI-style profit ladder for a period: departmental profit, GOP and margin, GOPPAR, management fees, EBITDA, FF&E reserve, and NOI (EBITDA less replacement reserve). Deterministic: the same inputs always give the same result, with formula ID calc.hotel_metrics@1, every step, and any warnings.

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": {
      "nights": "<nights>",
      "rooms": "<rooms>",
      "rooms_sold": "<rooms_sold>",
      "room_revenue": "<room_revenue>"
    },
    "name": "calc_hotel_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomsYesRooms in inventory (keys).
nightsYesNights in the period, e.g. 365 for a year or 30 for a month.
fb_revenueNoFood and beverage revenue, USD (USALI Food and Beverage department revenue).
rooms_soldYesRoom-nights occupied by paying guests in the period (USALI: rooms sold, excluding complimentary rooms).
room_revenueYesRooms revenue for the period, USD (USALI Rooms department revenue, net of taxes and allowances).
other_revenueNoOther operated departments plus miscellaneous income, USD (USALI Other Operated Departments and Miscellaneous Income).
ffe_reserve_rateNoFF&E replacement reserve as a share of total operating revenue, e.g. 0.04 (USALI Replacement Reserve, below EBITDA). Must be less than 1.
rooms_out_of_orderNoRoom-nights (rooms × nights, not rooms) taken off the market in the period, e.g. 20 rooms closed for a 30-night renovation = 600. Subtracted from rooms × nights to give rooms available. USALI (11th ed.) keeps short-term out-of-order rooms in rooms available; include only rooms formally removed from sale.
management_fee_rateNoBase management fee as a share of total operating revenue, e.g. 0.03 (USALI Management Fees). Must be less than 1.
management_fee_fixedNoFixed or incentive management fee for the period, USD, added to the percentage fee (USALI Management Fees).
departmental_expensesNoTotal departmental expenses, USD: rooms, F&B, and other operated departments (USALI Total Departmental Expenses).
non_operating_expensesNoProperty taxes, insurance, ground rent, and other non-operating expenses, USD (USALI Non-Operating Income and Expenses).
undistributed_expensesNoTotal undistributed operating expenses, USD: administrative and general, information and telecommunications, sales and marketing, property operation and maintenance, utilities (USALI Total Undistributed Operating Expenses).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • changedInput schema / properties / ffe_reserve_rate / description
      Previous value: -"FF&E replacement reserve as a share of total operating revenue, e.g. 0.04 (USALI Replacement Reserve, below EBITDA)."New value: +"FF&E replacement reserve as a share of total operating revenue, e.g. 0.04 (USALI Replacement Reserve, below EBITDA). Must be less than 1."
    • removedInput schema / properties / ffe_reserve_rate / exclusiveMaximum
      Removed value: -1
    • addedInput schema / properties / ffe_reserve_rate / maximum
      Added value: +1
    • changedInput schema / properties / management_fee_rate / description
      Previous value: -"Base management fee as a share of total operating revenue, e.g. 0.03 (USALI Management Fees)."New value: +"Base management fee as a share of total operating revenue, e.g. 0.03 (USALI Management Fees). Must be less than 1."
    • removedInput schema / properties / management_fee_rate / exclusiveMaximum
      Removed value: -1
    • addedInput schema / properties / management_fee_rate / maximum
      Added value: +1
    • removedInput schema / properties / nights / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / nights / maximum
      Removed value: -9007199254740991
    • addedInput schema / properties / nights / minimum
      Added value: +1
    • removedInput schema / properties / rooms / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / rooms / maximum
      Removed value: -9007199254740991
    • addedInput schema / properties / rooms / minimum
      Added value: +1
    • removedInput schema / properties / rooms_out_of_order / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / rooms_sold / maximum
      Removed value: -9007199254740991
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuinely new behavior: deterministic output with formula ID calc.hotel_metrics@1, per-step trace, and warnings. It does not contradict annotations, but it says nothing about input validation behavior or limits.

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 outputs an agent cares about, then a compact second sentence on determinism and provenance. Dense but every clause carries information; the long metric enumeration is justified because it defines scope.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter financial model with no output schema, the description covers what is produced and that it is reproducible, but omits unit expectations, failure conditions, and how warnings surface. Adequate for invocation, thin for interpreting results.

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% and each parameter carries USALI-specific definitions, so the schema does the heavy lifting. The description adds no parameter-level meaning (e.g. how out-of-order rooms or the fee rates feed the ladder) beyond what the schema documents.

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 names the exact metric set (occupancy, ADR, RevPAR, TRevPAR) and the USALI profit ladder down to NOI, which makes the resource and computation unambiguous. It does not explicitly contrast itself with any sibling, but no calc_* sibling covers hotel operations, so the domain alone separates it.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no prerequisite (e.g. USALI-consistent inputs), and no named alternative. The phrase 'for a period' hints at scope but the agent gets no routing signal beyond the title.

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.