Skip to main content
Glama

cmd

Send whitelisted commands to a device to start or stop connections, retrieve state, or ping it. Provide deviceId and command name to trigger remote debugging actions.

Instructions

向设备下发白名单命令(start_connection/stop_connection/get_state/ping)

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": {
      "deviceId": "<deviceId>",
      "name": "<name>"
    },
    "name": "cmd"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
nameYes
deviceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It only discloses that commands are whitelisted; it does not say that start_connection/stop_connection are state-changing operations, whether the call blocks or returns immediately, what happens on an unlisted command, or what error/auth conditions apply. This is a significant gap for a dispatch tool with mutation side effects.

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?

A single compact sentence with the key fact (whitelisted commands) front-loaded and the enumeration kept short. Efficient, though the space freed by its brevity could have been used for parameter mapping.

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?

No output schema, no annotations, and an undocumented nested `args` object mean an agent cannot reliably construct a call for anything beyond the bare command name. It also leaves open what the call returns per command (e.g., ping vs get_state). Too much is left unspecified for a 3-parameter dispatch tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description must compensate and does not. It lists valid command values but never ties them to the `name` parameter, and it says nothing about `deviceId` format or the nested `args` object that presumably carries per-command arguments — the most error-prone part of the call.

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?

States a specific verb and resource: dispatch ('下发') a whitelisted command to a device. The parenthetical enumerates the four permitted command names, which makes the tool's scope concrete. It does not explicitly contrast with siblings like bridge_status or watch_stability, so a 4 rather than 5.

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?

Usage is implied: use this when you need to start/stop a connection, query state, or ping a device. There is no explicit when-not-to-use guidance and no mention of prerequisites (device online, registration), and no pointer to alternatives such as bridge_status for status checks.

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