Skip to main content
Glama

PitCanary

How suitable a room was for sleep, night by night

get_nights
Read-onlyIdempotent

Returns the nights of one bedroom, hotel room, or B&B or holiday-home room, one record per night, newest first, each saying how suitable the room was for sleep. The night is the unit, and a night belongs to the evening it starts on. A record carries the night window, the rest period (when the room was in use for sleeping; null on a night it was not used, which then has no score), the night score from 0 to 100 with its band, the factor that held it back and each of noise, thermal, air, light and humidity, and the conditions over the night: temperature and how it drifted, CO₂ with the minutes over 1000, 1500 and 2000 ppm and the air change it implies, humidity with the dew point and whether the coldest surface risked damp, the background sound and each noise event by time and level (over more than fourteen nights, each night's loudest and the count), when the room went dark and when first light came, what sounded like snoring and when, and the ids of the advice the night points to. Three sound fields are reported and never scored, and all three are sounds from the room, never about anyone's health: restless is the minutes of unsettled sound from inside the room (the level well above the background, not snoring and not a loud event), per hour and in stretches; cough_sneeze_sounds is the minutes in which something sounded like a cough or a sneeze, with their times; snore counts windows (short moments the sound classifier heard as snoring), events (runs long enough to count) and minutes (minutes holding at least one event), with the stretches they formed. It describes the room, never the sleeper: not how anyone slept, no sleep stages and no length of sleep, never a number of people, and snoring is sound that sounds like snoring, never a statement about anyone's health. A night is clearer drawn than listed: CO₂ climbing through it, the snoring stretches and the noise events on one time axis. A room of any other type answers with no nights and says why. This is the answer to how last night was in a room and why a bedroom is stuffy in the morning; for what happened in a room hour by hour on one day, get_timeline, and for the measurements behind a night, get_history. Requires a PitCanary account.

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": {
      "room_id": "<room_id>"
    },
    "name": "get_nights"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoThe last night to read, YYYY-MM-DD, named by the evening it starts on, inclusive. At most 31 nights at a time. For last night alone, from and to are both yesterday's date.
fromNoThe first night to read, YYYY-MM-DD, named by the evening it starts on, inclusive. Give from and to together; with neither, the last seven nights ending with last night.
room_idYesThe room id, as returned by list_rooms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, but the description adds substantial behavioral context beyond them: newest-first ordering, one record per night, null rest periods producing no score, three sound fields that are reported but never scored, room-only interpretation rather than sleeper health claims, unsupported room types returning no nights with a reason, and the PitCanary account requirement.

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 purpose and alternatives are front-loaded, but the description is a very long single paragraph with repeated safety caveats and some vague filler such as 'A night is clearer drawn than listed.' Much of the detail is justified because there is no output schema, but the presentation is not concise and would benefit from tighter grouping or bullets.

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 carry the return-value burden. It does so thoroughly, enumerating the night window, rest period, score band, limiting factor, environmental conditions, sound fields, advice ids, and edge cases such as unused nights and unsupported room types. This is complete for a complex night-summary tool.

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%, so the schema already documents room_id, from and to in detail. The description reinforces the night-as-evening semantic and the newest-first ordering, but it does not add parameter-specific syntax, defaults or constraints beyond what the schema already provides. The baseline score of 3 is appropriate when the schema carries the parameter semantics.

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 opens with a specific verb and resource: 'Returns the nights of one bedroom, hotel room, or B&B or holiday-home room, one record per night, newest first.' It explicitly distinguishes the night-by-night sleep-suitability view from get_timeline and get_history, so an agent can identify the tool's role 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 Guidelines5/5

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

It gives explicit usage guidance: 'This is the answer to how last night was in a room and why a bedroom is stuffy in the morning,' then names alternatives: 'for what happened in a room hour by hour on one day, get_timeline, and for the measurements behind a night, get_history.' It also explains the fallback for unsupported room types, which is a useful when-not condition.

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