Skip to main content
Glama

PitCanary

Wipe a PitCanary

factory_reset_device
Destructive

Erases a sensor's own settings, its calibration and its pairing, returning it to how it left the factory. It has to be set up again over its captive portal afterwards, including the wifi it joins. The measurements it already sent are kept. This cannot be undone from here. PitCanary keeps this for the account owner or an admin signed in to the dashboard: an API key is refused it whatever its access, so through this server the answer says where to do it rather than doing it. It takes 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. 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>"
    },
    "name": "factory_reset_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint and non-idempotency, and the description goes well past that: it names the irreversible consequence, what survives the wipe (sent measurements), the re-provisioning burden over the captive portal including wifi, and the auth model that blocks API keys. It also discloses that the first call is a no-op dry run returning a confirm token.

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 destructive outcome and the preserved measurements are front-loaded, and most sentences carry distinct information. The sentence beginning "PitCanary keeps this for the account owner or an admin..." is slightly tangled and takes a second read to parse as a permission statement.

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 destructive tool with no output schema, the definition covers consequences, reversibility, authorization, the confirmation protocol, and post-reset state. Nothing an agent needs to decide whether and how to invoke it 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% and the confirm parameter is already richly documented in-schema, so the baseline is 3. The description adds the sequencing contract in prose — same arguments, same token, second call performs the wipe — which helps an agent plan the two-step flow rather than reading only the field text.

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?

"Erases a sensor's own settings, its calibration and its pairing, returning it to how it left the factory" gives a concrete verb, resource, and the exact scope of what is wiped. The added "The measurements it already sent are kept" implicitly separates it from reset_device_data, but no sibling is named outright.

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?

The description states the prerequisites (PitCanary account, owner or admin on the dashboard), the hard exclusion (an API key is refused whatever its access, so this server only returns where to do it), and the mandatory two-call confirm sequence with signal to stop. An agent knows both when to call it and when it will be rejected.

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