Skip to main content
Glama

PitCanary

Set when people are expected in a room

set_expected_hours
DestructiveIdempotent

Sets when people are expected in a room, per weekday. These hours decide when somebody being there counts as a visit outside hours, which matters most in rooms that should stand empty at night and at the weekend: a server room, a storage room, a shop after closing. They are separate from the active hours, which decide what the room score and the trends count. A room with none set follows the default for its purpose, and use_default set to true clears them back to that default. In a room whose purpose expects nobody at set times, such as a bedroom or a home, they change nothing. 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": "set_expected_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoOne entry per weekday you want to change. Days you leave out keep the hours they had. Leave this out when use_default is true.
room_idYesThe room id, as returned by list_rooms.
use_defaultNotrue clears the expected hours, so the room follows the default for its purpose again. Send either this or days.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, and the description adds real context beyond them: use_default clears the hours and reverts the room to its purpose default, and the call is a no-op in certain room purposes. It also discloses an account requirement. It stops short of describing what the call returns or how invalid time ranges are handled.

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 core action is front-loaded in the first sentence, with consequences and edge cases following in a logical order. It is a single dense block and the active-hours comparison sentence is long, but every sentence contributes a distinct fact rather than restating the schema.

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?

For a destructive, nested-schema mutation with no output schema, the definition covers the effects, the reset path, the no-op cases, and the auth prerequisite. Only the response behaviour and validation failures are left implicit, which is a minor gap for this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds domain meaning the schema lacks: use_default resets to the purpose default rather than merely storing a flag, and rooms with no hours set follow that default implicitly. It does not elaborate on the day/time pair semantics, which the schema already documents thoroughly.

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?

Opens with a specific verb and resource plus scope: 'Sets when people are expected in a room, per weekday.' It then explicitly separates this concept from the active hours, which decide room score and trends, so an agent can tell it apart from the adjacent set_active_hours tool without opening either 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?

Gives concrete when-to-use guidance (rooms that should stand empty at night and at weekends, with server room, storage room, and shop-after-closing examples) and explicit when-not guidance (bedrooms and homes whose purpose expects nobody at set times, where the call changes nothing). It also states the default behaviour for rooms with nothing set and how to return to 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