Skip to main content
Glama

PitCanary

Put a PitCanary in a room

pair_device

Pairs a sensor to a room using the pairing code shown on the device or in its settings. From then on its readings are attributed to that room. Repeated wrong codes are slowed down, and an unknown code and a code that is already taken get the same answer. 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>",
      "pairing_code": "<pairing_code>"
    },
    "name": "pair_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
room_idYesThe room id, as returned by list_rooms.
pairing_codeYesThe code that identifies the device.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations, the description discloses rate limiting on repeated wrong codes, uniform responses for unknown versus already-taken codes (an anti-enumeration measure), and an account prerequisite. It does not explain what happens when a device is already paired to another room, which matters given idempotentHint=false.

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 short sentences, each doing distinct work: the action, the persistent effect, and the operational caveats and prerequisite. Nothing is repeated from the schema or annotations.

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 two-parameter mutation with full schema coverage and no output schema, the description covers the effect of success, error-normalization behavior, throttling, and auth requirements. Only the already-paired or re-pairing case is left unaddressed.

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 both parameters are already documented. The description adds provenance for pairing_code, telling the agent where the user finds the code, which is meaningfully more than the schema's bare 'code that identifies the device'.

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?

Names a specific verb and resource: pairing a sensor to a room, with the identifier being the device-displayed pairing code. It clearly conveys the operation and its lasting effect ('from then on its readings are attributed to that room'), though it never distinguishes itself from the sibling claim_device tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives useful context about where to obtain the pairing code (the device or its settings) and states an account is required, which is an implicit precondition. It does not say when to prefer this over alternatives such as claim_device, or what to do if the device is already paired.

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