Skip to main content
Glama

PitCanary

Set when a room is meant to be in use

set_active_hours
DestructiveIdempotent

Sets the hours a room is expected to be occupied, per weekday. Trends split every measurement between these hours and the rest, so getting them right is what makes the difference between a building problem and a use problem visible. 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>",
      "days": "<days>"
    },
    "name": "set_active_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesOne entry per weekday you want to change. Days you leave out keep the hours they had.
room_idYesThe room id, as returned by list_rooms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds the downstream consequence (measurements are split between active and inactive hours) and an account requirement, which is genuine context. It does not clarify the scope of the destructive change, i.e. that only the supplied weekdays are overwritten while omitted days are preserved, which is exactly what an agent needs to judge the write's blast radius.

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?

Three tight sentences with the action front-loaded and no filler; the middle sentence is longer but earns its length by explaining the analytical impact. The trailing account requirement could have been folded in more economically.

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?

For a nested-object configuration write with rich annotations, a 100%-described schema and no output schema, the description covers what the tool does, why the values matter, and the account prerequisite. Nothing an agent needs to invoke it correctly 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 the schema itself documents per-day from/to/enabled plus the omit-a-day-keeps-old-hours rule, so the description adds little parameter meaning beyond restating the per-weekday framing. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Sets the hours a room is expected to be occupied, per weekday'), which is far more precise than the title alone. It does not, however, differentiate itself from the sibling set_expected_hours, whose name suggests an overlapping concept, leaving the agent to guess which one applies.

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?

The description explains why the values matter ('Trends split every measurement between these hours and the rest'), which implies the tool is configuration-stage rather than analysis-stage, but it never says when to call this versus set_expected_hours or when not to call it. Usage is inferable rather than stated.

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