Skip to main content
Glama

PitCanary

Set nap times in a childcare sleep room

set_nap_blocks
DestructiveIdempotent

Sets when the children in a childcare sleep room nap, as up to six windows on the same day, each starting before it ends. Only a room of that type reads them: there an event during a nap, a noise above all, weighs the way it would at night, and in any other room they are stored and change nothing. The list replaces the one before it. An empty list means the room has no naps. A room with none set follows the default for its purpose, and use_default set to true clears the list back to that default. 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_nap_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
blocksNoThe complete list of nap windows. An empty list means no naps. Leave this out when use_default is true.
room_idYesThe room id, as returned by list_rooms.
use_defaultNotrue clears the nap windows, so the room follows the default for its purpose again. Send either this or blocks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds real value beyond annotations: it discloses that the new list destroys the previous one (matching destructiveHint), that writes to non-sleep rooms are silent no-ops, and that an account is required. It does not say what the call returns or whether partial/overlapping windows are rejected.

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

Conciseness5/5

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

Front-loads the core action and the max-six/same-day constraint, then layers replace semantics and defaults in order of decision importance. Dense but every clause carries information an agent needs before invoking.

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 write tool with no output schema, the description covers effect, replacement semantics, and the wrong-room no-op, which is enough to call it correctly. The missing piece is return behavior and confirmation of what a successful reset looks like.

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 the baseline is 3, but the description adds a cross-field rule the schema cannot express — each window must start before it ends — and clarifies the interplay of blocks, empty list, and use_default. It still leaves edge cases like overlapping windows unaddressed.

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 when the children in a childcare sleep room nap') plus a hard scope limit of six same-day windows. It distinguishes itself behaviorally by noting only rooms of that type act on the data, though it never names the sibling it pairs with (e.g. set_night_window) as an alternative.

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?

Gives a strong when-not: in any other room the blocks 'are stored and change nothing', which tells the agent to target only sleep rooms. Also spells out replace semantics, the empty-list case, and the use_default reset path, but never explicitly contrasts itself with the night-window or default-schedule tools.

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