Skip to main content
Glama
AdaptixC2 MCP Server

AdaptixC2 MCP Server

by VictorNS69

adaptix_agent_command_execute

Destructive

Execute a command on an AdaptixC2 agent using its agent ID and command name, passing command-specific JSON arguments and optionally waiting for the result or polling task status.

Instructions

Run a command on an agent. cmdline is the agent command name (e.g. shell, powershell, cat, ls, cd, download, socks, exit); data is a JSON string of that command's arguments. Argument names are per-command and this server normalizes the obvious ones: shell/powershell take {"cmd_params":"whoami"}, cat/ls/cd/mkdir take {"path":"C:\Users"}, download takes {"file":""}, cp/mv take {"src":…,"dst":…}. {"command":…}, {"cmd":…}, {"cmdline":…} and a bare string are translated to the right key for the commands in that table; anything else is passed through verbatim with a warning. Set wait_answer true to wait inline; otherwise poll adaptix_task_list — a task that reports 'undefined' means the key was wrong.

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": {
      "agent_id": "<agent_id>",
      "cmdline": "<cmdline>"
    },
    "name": "adaptix_agent_command_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoJSON string of the command's arguments (default "{}").
cmdlineYesAgent command name, e.g. shell, sleep, cat, socks, exit.
agent_idYesAgent id from adaptix_agent_list.
wait_answerNoWait for the command result inline (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the single destructiveHint annotation, it discloses non-obvious runtime behavior: key normalization per command, translation of {command}/{cmd}/{cmdline}/bare-string forms, pass-through with a warning for unrecognized keys, and that a task reporting 'undefined' means the argument key was wrong. That error-signal detail is exactly the kind of information an agent cannot get from structured fields.

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?

It is front-loaded with purpose before the argument table, and the dense per-command examples are compressed with inline JSON rather than prose. The middle portion reading as one long run-on sentence with multiple clause chains slightly hurts scanability.

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?

For a four-parameter tool with no output schema, the description covers how results are obtained (inline wait vs polling task_list) and how argument formatting can fail, which is the main completeness requirement. It omits any mention of required agent state or permissions, and does not note that results are only visible through the task tools.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes well beyond it by enumerating the concrete argument keys each command expects (cmd_params, path, file, src/dst) and describing the data key-normalization fallbacks. It also clarifies wait_answer's blocking semantics rather than just repeating the schema wording.

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?

The description opens with a specific verb+resource ('Run a command on an agent') and immediately clarifies that cmdline is the agent command name rather than a raw command line, which is the main ambiguity an agent would face. It does not differentiate from the sibling adaptix_agent_raw_command, which would be the natural confusion point, so it stops short of a 5.

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

Usage Guidelines4/5

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

It explicitly tells the agent to set wait_answer true to block inline or otherwise poll adaptix_task_list, which is actionable when-to-use guidance for a real decision. It gives no guidance on when this tool is preferable to adaptix_agent_raw_command, and no preconditions (agent must be live, authentication) are stated.

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