Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Run backend command

run_backend_command
Destructive

Execute one command line on a remote host via SSH, Telnet, ADB, WinRM, or Cisco to inspect or manage systems and return exit code, stdout, and stderr.

Instructions

Run one command line on a remote host (SSH, Telnet, ADB, WinRM, Cisco). Use when: a shell command is needed there (ps, df, a Cisco show). Instead: run_backend_script for scripts; the file tools for files. Requires: --mcp-tools exec and --mcp-allow-exec; not in paranoid mode; a backend that list_backends gives commands (not null). Behavior: destructive - runs with the profile user's rights. Refused on production profiles. A non-zero exit is a result; Cisco always reports 0, Telnet and ADB the real code (stderr inside stdout). Time limit: timeout; past it the call fails and no output returns. Returns: {returncode, stdout, stderr, truncated_stdout, truncated_stderr} (text, UTF-8 with undecodable bytes replaced).

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": "<command>",
      "backend": "<backend>"
    },
    "name": "run_backend_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment variables for the command as {NAME: value}, e.g. {"LANG": "C"}. On POSIX shells they are exported in the command line, so other users of the host may see the values: pass no secrets this way.
stdinNoText fed to the command's stdin (UTF-8); not supported on WinRM or Cisco. Default: none.
backendYesBackend id from list_backends (can_run_commands=true), e.g. 'profile:web1'.
commandYesThe command line, run by the remote's shell, e.g. 'df -h /'.
timeoutNoSeconds the command may run (at most 1740, below the call's 30 min); longer fails with a timeout error and returns no output.
max_outputNoMost bytes of stdout kept; stderr keeps min(max_output, 1 MiB). truncated_stdout / truncated_stderr tell when output was cut.

Output Schema

NameRequiredDescriptionDefault
stderrYes
stdoutYes
returncodeYes
truncated_stderrYes
truncated_stdoutYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (destructive/openWorld/non-idempotent) by disclosing that commands run with the profile user's rights, are refused on production profiles, and that exit-code semantics vary by backend (Cisco always 0, Telnet/ADB real code, stderr folded into stdout). It also states the timeout failure mode returns no output at all.

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?

Front-loaded with verb+resource and organized into labelled clauses (Use when / Instead / Requires / Behavior / Returns), which makes it scannable. The explicit return-field list is somewhat redundant against the existing output schema, though the accompanying encoding and truncation notes retain value.

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

Completeness5/5

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

For a destructive, open-world execution tool with six parameters, all the decisions an agent must make are covered: whether it is allowed, which backend, what happens on timeout, and how to interpret the exit code. Nothing material to a correct invocation is missing.

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 the parameters are already well documented and the baseline of 3 applies. The description only restates the timeout behavior already described in the schema and adds no new meaning for command, backend, env, stdin, or max_output.

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 and resource with its transport scope: 'Run one command line on a remote host (SSH, Telnet, ADB, WinRM, Cisco).' The 'Instead' line names the sibling it is not (run_backend_script) and the file tools, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Explicit when-to-use with concrete examples ('ps, df, a Cisco show'), explicit alternatives for scripts and files, and prerequisites (--mcp-tools exec, --mcp-allow-exec, not paranoid mode, backend must report non-null commands from list_backends). Both the selection condition and the exclusion conditions are present.

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