Skip to main content
Glama

Get hotel tax rules

getHotelTaxSchema
Read-onlyIdempotent

Overview

Returns the taxes and fees of a hotel as normalized static data. Each entry describes one tax or fee: whether it is settled with the booking or paid at the property, whether it is a percentage of the room rate or a fixed amount, how fixed amounts scale (per adult and/or per night), and its category.

When to Use

  • Price transparency - Show guests which taxes and fees apply at a property

  • Amount-due-at-property estimates - Charges with payAtProperty = true are collected at the hotel

  • Tax auditing - Compare a supplier's rate breakdown against the reference schema

Notes

  • Every listed tax or fee applies on top of the room rate

  • included and payAtProperty are always opposites: included = true means the charge is settled with the booking, payAtProperty = true means the guest pays it at the property

  • When payAtProperty is returned, fixed amounts are always paid at the property, and fees (chargeType = fee) that apply on the same basis are combined into one entry settled with the booking and one paid at the property; a combined entry's name lists the fees it covers

  • Percentage rates apply to the room rate (e.g. 13.5 means 13.5%)

  • Fixed amounts are expressed in USD unless currency says otherwise

  • appliedPer, appliedOn, validFrom and validTo are present when that detail is known for the charge; an entry without them is complete

  • Tax data is refreshed periodically; use lastUpdated to detect changes. Hotels without tax data return 404

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": {
      "hotelId": "<hotelId>"
    },
    "name": "getHotelTaxSchema"
  }
}

Input Schema

NameRequiredDescriptionDefault
hotelIdYesUnique identifier of the hotel, in 'lp' format or numeric.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only cover readOnly/idempotent/openWorld, and the description adds substantial behavior beyond them: 404 for hotels without tax data, periodic refresh detectable via lastUpdated, the `included`/`payAtProperty` opposition rule, how combined fee entries are constructed, and the USD/currency convention. These are non-obvious traits an agent could not derive from structured fields.

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?

Markdown headings and bullets front-load the overview and usage before the detailed notes, and nearly every bullet conveys a distinct rule. It is on the long side for a one-parameter read tool, with some detail that could be compressed, but nothing is filler.

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

Completeness5/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 compensates by describing the shape and meaning of each returned tax entry (chargeType, percentage vs fixed, appliedPer/appliedOn, validFrom/validTo) plus the 404 case. An agent can call this and interpret the response without further documentation.

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?

There is a single parameter with 100% schema coverage that already documents 'lp' format or numeric IDs. The description adds no further meaning about hotelId or its format, so the schema carries this dimension entirely.

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 first line states a specific verb and resource ('Returns the taxes and fees of a hotel as normalized static data') and the Overview enumerates the per-entry attributes. It is clear what the tool yields, though it never names a sibling (e.g. get_data_hotel) to contrast against, so differentiation is left to inference.

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?

The 'When to Use' section gives three concrete scenarios: price transparency, amount-due-at-property estimates, and tax auditing. It does not state when NOT to use it or which sibling to call instead, so there is no explicit routing 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.