Skip to main content
Glama

How one night sold

night_sales
Read-only

Answers "how did we get double booked?": for one night and one room type, every stay that held it (cancelled ones included) in the order it took the night, with how many rooms of that type were left at that moment, through what and by whom; the booking site's oversold alerts (owners and admins) and any booked-past-full overrides. Group holds are not rooms sold. 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": {
      "night": "<night>",
      "room_type": "<room_type>"
    },
    "name": "night_sales"
  }
}

Input Schema

NameRequiredDescriptionDefault
nightYesThe night YYYY-MM-DD
room_typeYesRoom type code or name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

The annotations already declare a safe read operation (readOnlyHint true, destructiveHint false, openWorldHint false), and the description adds real context beyond them: cancelled stays are included, results are ordered by when each stay took the night, remaining rooms are shown at each point, and oversold alerts are restricted to owners and admins. The authorization note ('Needs the owner's sign-in') is useful but is stated only as a one-line requirement with no detail on what happens when the agent lacks it.

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 description is front-loaded with the question the tool answers and then enumerates the returned content efficiently, with no filler. It is a single long chained clause, however, and phrases such as 'through what and by whom' plus the parenthetical 'cancelled ones included' make it harder to scan than a short structured list would be.

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?

There is no output schema, so the description must convey the return shape; it does this by enumerating the ordered stays, the remaining room count at each moment, the channel and actor, oversold alerts, and booked-past-full overrides. Together with the two required parameters and the auth note, nothing essential for correct invocation is missing.

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% and both parameters are already documented, so the baseline is 3. The description adds only the implicit meaning that the night and room type are a single-night, single-room-type slice, which is marginal beyond what the schema pattern and descriptions already provide.

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 states a very specific resource and scope: for one night and one room type, it lists every stay that held the night, including cancelled stays. The framing question ('how did we get double booked?') plus the exclusion 'Group holds are not rooms sold' pin down exactly what is and isn't counted, so an agent sees this is a forensic per-night occupancy trace rather than a general sales or audit report.

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 tool's guiding question ('how did we get double booked?') and its scope of one night and one room type provide a clear trigger for when to call it, and the note that it needs the owner's sign-in gives a practical precondition. It does not name an alternative such as night_audit or availability for adjacent questions, so the agent must infer when not to use it.

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