Skip to main content
Glama

PitCanary

Set when to be told about a room

set_alert_rules
DestructiveIdempotent

Replaces the alert rules for one room. Each rule watches one measurement, in one direction, past one value, for a length of time before it fires. Passing the list replaces it, so include the rules you want to keep. 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>",
      "rules": "<rules>"
    },
    "name": "set_alert_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesYesThe complete set of rules for this room.
room_idYesThe room id, as returned by list_rooms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the bar is lower, yet the description earns credit by explaining exactly what the destruction means — the full rule set is overwritten, not merged. It also explains the firing semantics (a condition must hold for a duration before an alert fires), which no annotation conveys. It omits error behavior for invalid rules and permission requirements beyond account ownership.

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?

Four short sentences, front-loaded with the verb and the replacement warning before the mechanics of a rule. Every sentence contributes distinct information: action, rule composition, replacement hazard, auth prerequisite.

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 two-parameter mutation tool with a fully documented schema and explicit destructive/idempotent annotations, the description covers action, rule structure, replacement semantics, and auth. No output schema exists, but the operation's effect is fully described, so nothing an agent needs is missing.

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 a baseline of 3 applies, but the description adds real meaning by conceptualizing a rule as watching 'one measurement, in one direction, past one value, for a length of time' and by stressing that the array is 'the complete set of rules.' That reinforces the atomic-replacement contract the schema only implies.

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?

The description opens with a specific verb and resource: 'Replaces the alert rules for one room.' The choice of 'replaces' rather than 'sets' is precise and consequential. It never names an adjacent sibling such as set_alert_status or set_comfort_ranges, so differentiation is left to inference.

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?

It gives a clear, actionable usage instruction: 'Passing the list replaces it, so include the rules you want to keep,' which tells the agent how to call it safely. It also states the prerequisite ('Requires a PitCanary account'). It stops short of naming when to prefer an alternative tool for a narrower change.

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