Skip to main content
Glama

PitCanary

Change how a PitCanary behaves

update_device_settings
DestructiveIdempotent

Changes a sensor's own settings: how often it measures, how its light behaves, which sensors are switched on, and its calibration offsets. Read the current settings first, because only the fields you pass are changed and each one is checked against what the firmware accepts. MQTT and other local-network settings are changed only by a person on the dashboard; an API key is refused them. 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>",
      "settings": "<settings>"
    },
    "name": "update_device_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
settingsYesThe settings to change, in the shape the device settings page uses. Only what you pass is altered.
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.3/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses partial-update semantics (only passed fields change), per-field firmware validation, an authorization refusal rule for MQTT/local-network settings, and an account requirement. The annotations only declare destructive/idempotent; the description supplies the operational behavior that makes those hints actionable.

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?

Three sentences, front-loaded with what changes, followed by the safe-usage rule and the authorization exclusion. No filler or restatement of the title.

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?

Strong coverage for a destructive, partially-updating mutation with no output schema: it explains partial semantics, validation, and refusals. What is missing is recovery guidance — with destructiveHint=true, it never says whether prior settings can be restored or what a failed validation leaves behind, beyond the advice to read first.

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 real meaning to the open-ended `settings` bag (additionalProperties: true) by naming the categories of settings that live there. It still defers to 'the shape the device settings page uses' without giving key names, which caps it at 4.

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?

Opens with a specific verb and resource ('Changes a sensor's own settings') and enumerates the actual setting domains: measurement frequency, light behavior, sensor enablement, calibration offsets. It implicitly separates itself from firmware/reset siblings by scoping to 'settings', but never names an adjacent tool like update_device_firmware or factory_reset_device, so an agent must still infer the boundary.

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 concrete precondition ('Read the current settings first') and an explicit when-not: MQTT and local-network settings are dashboard-only and refused to API keys. It does not name a sibling alternative for the cases it excludes, which keeps it short of a 5.

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