Skip to main content
Glama

command_execute

Run a specified command on one MikroTik RouterOS device via SSH, with a dry-run option to preview changes before execution.

Instructions

Execute a command on one device.

Commands may be non-idempotent. When the result reports an unknown outcome, the command may already have run and must not be retried automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceYes
commandYes
dry_runNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
deviceYes
statusYes
stderrNo
stdoutNo
exit_codeNo
duration_msYes
execution_stateYes
stderr_truncatedNo
stdout_truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does so well for the risk profile: it warns that commands may be non-idempotent, that an unknown outcome may mean the command already ran, and that automatic retry is forbidden. It omits other relevant traits such as required permissions and the fact that dry_run defaults to true, which materially changes whether anything actually executes.

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?

Two short sentences, front-loaded with the action and followed by the critical failure-mode caveat. No filler and nothing buried.

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

Completeness3/5

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

An output schema exists, so return-shape explanation isn't required, and the description correctly ties the "unknown outcome" language to the result. However, with 0% parameter coverage and no annotations, the omission of dry_run semantics and execution permissions leaves the definition materially incomplete for a mutating command 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, yet it explains none of them. Only "on one device" implies the device parameter is singular rather than a list; command and especially dry_run (defaulting to true, i.e., no execution unless changed) are left entirely unexplained.

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: "Execute a command on one device." The scope (single device) is clear and the sibling device_list is obviously a different operation, so an agent won't confuse them, though the description never explicitly contrasts them.

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 by the non-idempotency warning, but there is no explicit when-to-use/when-not framing or named alternative beyond the unrelated device_list. The retry warning is useful context but is behavioral guidance rather than selection guidance.

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