Skip to main content
Glama

Send Device Command

device.registry.command
Destructive

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

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": {
      "connection_id": "<connection_id>",
      "device_id": "<device_id>",
      "command": "<command>",
      "value": "<value>"
    },
    "name": "device.registry.command"
  }
}

Input 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

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/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=false, openWorldHint=true, so the safety profile is known; the description still adds real value by disclosing that numeric setpoints are bounds-checked against per-class limits in config/device-classes.json and that some classes hard-require confirm:true. It does not mention what happens on rejected commands, whether state changes are reversible, or any rate limiting — plausible gaps for a destructive physical actuation tool.

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?

A single front-loaded paragraph: action and scope first, then the safety semantics, then the required parameters. No filler sentences, though the trailing required-parameter list is the one slightly redundant clause.

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?

With an output schema present, return values need not be explained, and the description covers the essentials an agent needs before a destructive physical action: ownership scoping, safety bounds, and the confirm gate. Remaining gaps are error/failure behavior and whether a rejected bounds check or missing confirm surfaces as a tool error — minor for a well-annotated, fully-documented-schema tool.

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 coverage is 100%, so all five parameters already carry descriptions, and the closing sentence ('Requires connection_id, device_id, command, value') merely restates the required list. The description does add safety framing around `value` bounds-checking and `confirm`, but the mechanics of confirm are already documented in the schema, so little new meaning is contributed.

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?

The description opens with a specific verb and resource — 'Send a command to a physical device' — and scopes it to 'the calling agent owns via a linked vendor connection,' which clearly separates it from the read-oriented siblings device.registry.list and device.registry.state. Concrete examples ('turn a plug on/off, set an AC temperature') remove any ambiguity about what a 'command' is.

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?

The '⚡ ACTION' framing and the ownership constraint imply this is the actuation path rather than an inspection path, but the description never explicitly says when to use it instead of device.registry.state (e.g. read current state first, then command). No when-not guidance is given, and the confirm:true precondition is stated as a fact rather than as a decision rule.

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.