Skip to main content
Glama

Get tourist tax

get_tourist_tax
Read-only

The tourist tax of one destination as a structured rule (rate per guest or room, tiers by lodging type, stars, town or season, the cap on taxed nights, age exemptions, long-stay waivers, where it is paid) with its source URL and read date, and with nights the amount for the stay and each step in words. A range means a tier was not chosen; a percentage needs nightly_price; both come back in needs instead of a guessed figure. Amounts in the rule currency. Takes a slug or a name; a miss answers found false with suggestions.

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": {
      "destination": "<destination>"
    },
    "name": "get_tourist_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNoTier ids from rule.charges[].tiers or needs, at most one per charge.
roomsNoRooms or rented units, for a charge per room, 1 to 10. Default 1.
adultsNoAdults whose age does not matter, 0 to 20. Default 2 when no ages are given.
nightsNoNights of the stay, 1 to 365. Without it the answer is the rule alone.
checkinNoFirst night, YYYY-MM-DD, for seasonal or dated rates. Default today (UTC).
destinationYesA destination slug or name, with or without the country.
children_agesNoAges of the other guests: children, or an older adult where an age rule reaches adults, 0 to 120.
nightly_priceNoNightly price of the room or rental in the rule currency, for a tax that is a percentage.

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 cover the safety profile (readOnlyHint true, openWorldHint false), but the description adds real behavioral detail beyond them: unresolved ranges or percentages come back in 'needs' rather than a guessed figure, a failed lookup returns found false with suggestions, and results carry a source URL and read date. Minor gaps remain on pagination or caching, but the disclosure of failure and fallback behavior is genuinely useful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is a long, parenthesis-heavy run-on that lists every rule component in one breath, which makes it dense to parse. Content is largely front-loaded and every clause carries information, but the phrasing ('with its source URL and read date, and with nights the amount for the stay and each step in words') could be tightened considerably.

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 8 parameters and no output schema, the description has to carry return-value semantics, and it does: it describes the rule payload, the computed stay amount with per-step explanation, the 'needs' overflow bucket, and the not-found response with suggestions. What remains thin is guidance on parameter interactions beyond the percentage/nightly_price case.

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 coverage is 100%, so the baseline is 3. The description does add a little meaning — that a percentage rate requires nightly_price and that a range signals an unchosen tier — but it says nothing about adults, children_ages, rooms, checkin, or nights beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (the tourist tax rule of one destination) and enumerates exactly what the returned rule contains: rate per guest or room, tiers by lodging type/stars/town/season, cap on taxed nights, age exemptions, long-stay waivers, and where it is paid. It also states the dual output mode (rule alone vs. computed stay amount), so an agent can distinguish it from get_destination_guide or get_hotel without opening the schema.

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 context is implied by phrases like 'without it the answer is the rule alone' (in the schema) and 'Takes a slug or a name; a miss answers found false with suggestions', but the description never says when to prefer this tool or what to do instead. There is no named alternative or exclusion, only input-shape guidance and failure behavior.

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