Skip to main content
Glama

Send Device Command

device.registry.command

⚡ ACTION: Send a command to a physical device the calling agent owns via a linked vendor connection (e.g. turn a plug on/off, set an AC temperature). Numeric setpoints are bounds-checked against the device class's configured safety limits (config/device-classes.json); some device classes require confirm:true. Requires connection_id, device_id, command, value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesThe value to set for this command
commandYesThe device's data-point code, e.g. 'switch_1', 'temp_set'
confirmNoMust be true for any device class flagged confirm_required in the safety layer (locks, valves, etc.)
device_idYesThe vendor's device id (from device.list)
connection_idYesYour device-connection id from /connect/device/connections

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The description adds meaningful behavioral context beyond annotations: numeric setpoints are bounds-checked against device-class safety limits, and some device classes require confirm:true. It also mentions ownership and connection prerequisites. It does not contradict the annotations (readOnlyHint false, idempotentHint false, destructiveHint false).

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 description is a single, front-loaded paragraph that efficiently states the action and includes safety details. Minor redundancy ('Requires connection_id...' duplicates required fields in schema) and the emoji are unnecessary but do not detract significantly.

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?

The description covers prerequisites (owned device, linked connection), safety bounds-checking, and confirm requirements. Since an output schema exists, return details are not needed. It omits error handling or asynchronous behavior, but for a command tool this is acceptable given the annotations.

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%, but the description adds value by explaining the confirm parameter (required for certain classes) and the bounds-checking behavior for numeric values, which is not evident from the schema alone. It also reinforces command examples, though the schema already provides some.

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+resource: sends a command to a physical device the calling agent owns via a linked vendor connection. Includes concrete examples (turn plug on/off, set AC temperature) that clarify scope, and its action nature clearly differentiates it from sibling read-only tools like device.registry.list and device.registry.state.

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?

Implied usage – it is clearly an action tool, but it does not explicitly contrast with alternatives such as device.registry.state for reading state, nor does it state when not to use it. No explicit when/when-not or exclusions are given, leaving the distinction to inference.

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.