Skip to main content
Glama
AdaptixC2 MCP Server

AdaptixC2 MCP Server

by VictorNS69

adaptix_agent_raw_command

Destructive

Runs a full command line on an agent and parses it to expose validation errors, useful for positional-argument commands such as link and unlink where queued execution cannot detect bad arguments.

Instructions

Run a command line on an agent through POST /agent/command/raw, which PARSES the whole line and returns a parse/validation error in message. Use this for commands whose arguments are positional — link smb <host> <pipe>, link tcp <host> <port>, unlink <id> — because adaptix_agent_command_execute answers ok:true with an empty message even when nothing was dispatched, so it cannot tell a bad argument from a queued command.

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_raw_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmdlineYesFull command line, e.g. "link smb 10.10.132.146 ms01pipe1".
agent_idYesAgent id from adaptix_agent_list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the single destructiveHint annotation, the description discloses that the whole line is PARSED and that parse/validation failures surface in `message` — real behavioral context that the annotation does not carry. It stops short of describing the success-path response shape or any execution side effects on the target, which matters given destructiveHint=true.

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 the action and routing rationale; every clause carries information. The second sentence is long and dense with em-dashes, which slightly hurts scannability but nothing is redundant.

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 two-parameter tool with a fully documented schema and no output schema, the description covers purpose, failure signaling, and sibling disambiguation. The gaps are the success-path return value and the consequences implied by destructiveHint, which the description never addresses.

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

Parameters4/5

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

Schema coverage is 100% so baseline is 3, but the description adds genuine meaning: it explains that `cmdline` is a whole line parsed positionally, and supplies concrete syntax examples for link/unlink commands. `agent_id` provenance is already covered by the schema.

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 concrete verb and resource ('Run a command line on an agent') plus the exact endpoint (POST /agent/command/raw), and explicitly contrasts its parsing behavior with the named sibling adaptix_agent_command_execute. An agent can distinguish the two 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?

Gives an explicit when-to-use rule ('commands whose arguments are positional') with three concrete command shapes, and explains precisely why the alternative fails ('answers ok:true with an empty message even when nothing was dispatched'). The selection condition is unambiguous.

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