Skip to main content
Glama

roma__SendCommand

Send commands to devices via ROMA, choosing synchronous or asynchronous delivery and passing request parameters for device control.

Instructions

[ROMA] 发送命令

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": {
      "command_id": "<command_id>",
      "device_id": "<device_id>",
      "instance_id": "<instance_id>",
      "is_sync": "<is_sync>",
      "project_id": "<project_id>",
      "service_id": "<service_id>"
    },
    "name": "roma__SendCommand"
  }
}

Input Schema

NameRequiredDescriptionDefault
is_syncYes命令是否同步 true-同步 false-异步 同步命令会将命令以MQTT消息发送给设备后等待设备的MQTT命令响应,收到响应后再回复响应(默认超时5秒),异步命令则以立即返回响应
requestsNo请求参数列表
device_idYes设备ID
command_idYes命令ID,自动向下取整
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
service_idYes服务ID,自动向下取整
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about the sync/async MQTT dispatch behavior, the 5-second default timeout, or error semantics. Those details live only in the is_sync parameter description inside the schema, not in the tool description, leaving a mutation-style action with essentially no behavioral framing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single tagged fragment with zero waste, but its brevity reflects under-specification rather than disciplined conciseness. There is nothing to front-load because nothing is said beyond the verb.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a seven-parameter, six-required command dispatch tool with nonserial synchronous/asynchronous behavior and no output schema or annotations. The description supplies none of the context an agent would need to invoke it confidently; only the rich parameter schema prevents a lower score.

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 description coverage is 100%, so every one of the seven parameters is documented in the schema itself (including the sync/async semantics and ID formats). The description adds no meaning beyond that, but the baseline of 3 is appropriate when the schema does all the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb and resource ("[ROMA] 发送命令" / send command), which is more than a bare name restatement, but it gives no scope, no target, and nothing that distinguishes it from siblings such as roma__CreateCommand or roma__ShowCommand. An agent knows it sends something command-related but not what the command acts on or how it differs from the Create/Update/Delete siblings.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (instance/project/service IDs are required but unexplained here), and no mention of alternatives. The description is silent on the choice between this and roma__CreateCommand or roma__UpdateCommand.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools