Skip to main content
Glama

PitCanary

Act on a PitCanary

manage_device
Destructive

Performs one action on a sensor: rename it, take it out of its room, remove it from this account, make it flash so it can be found on a wall, or restart it. Unpairing and removing from the account take two calls: the first changes nothing and returns what will happen with a confirm token, and the second, with the same arguments and that token, does it. Removing a sensor from the account is kept for the account owner or an admin signed in to the dashboard, so through an API key that action is refused. Wiping a device is a separate tool. 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": {
      "device_id": "<device_id>",
      "action": "<action>"
    },
    "name": "manage_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe new name, when renaming.
actionYesrename needs a name. unpair takes it out of its room and keeps the history. release removes it from this account; it gets a new pairing code and has to be claimed again. identify makes it flash so it can be found. reboot restarts it. unpair and release take a confirm token.
confirmNoLeave this out on the first call. That call changes nothing and returns a sentence saying what will happen plus a confirm token. Pass the token here, unchanged and with the same other arguments, only after the person has said yes to that sentence.
device_idYesThe PitCanary id, as returned by list_devices, or active_device_id in list_rooms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds what is actually destroyed or preserved (history kept on unpair, new pairing code on release) and which action is permission-gated. The no-op-first-call/confirm-token contract is a behavioral trait nothing in the structured fields conveys, and it prevents accidental destructive writes.

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?

Front-loaded with the action list, then the confirm protocol, then the permission caveat — a sensible order. A few phrases duplicate the enum description ("make it flash so it can be found on a wall"), which is mild redundancy but keeps the description self-contained.

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?

With no output schema, the description still explains the only non-obvious return value: the first call returns a sentence describing the effect plus a confirm token. Combined with the account requirement and permission gate, nothing an agent needs in order to call this 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 description coverage is 100%, and the enum description already spells out each action and the confirm-token requirement, so the schema carries the semantic load. The description mostly restates those meanings rather than adding format or edge-case detail beyond it; baseline 3 applies.

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?

States a specific verb and resource ("Performs one action on a sensor") and enumerates all five actions: rename, unpair, release, identify, reboot. It also distinguishes itself from the destructive sibling by noting "Wiping a device is a separate tool," so an agent can route correctly without opening a 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 per-action conditions (unpair removes from room but keeps history, release drops the account and forces re-claim, identify flashes, reboot restarts) plus an explicit exclusion for wiping. It also documents the two-call confirm protocol and the permission gate — release is refused through an API key — which is exactly the when-not guidance an agent needs.

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