Skip to main content
Glama
AdaptixC2 MCP Server

AdaptixC2 MCP Server

by VictorNS69

adaptix_agent_generate

Destructive

Builds an AdaptixC2 agent artifact from an agent type, callback listener, and JSON build options, writes the binary to an output directory, and returns its path without overwriting earlier builds.

Instructions

Build an agent artifact. agent is the agent kind (beacon, kharon, gopher); listener_name is the listener it calls back to; config is a JSON string of THAT agent's build options — beacon is Windows-only (arch x64|x86, format Exe|Service Exe|DLL|Shellcode, sleep a STRING, jitter an INT); gopher covers linux|windows|macos (arch amd64|arm64, format Binary EXE, reconn_timeout a STRING, reconn_count an INT); label names the host it is for and is folded into the filename. gopher/kharon compile from source inside the install tree, so a root-owned install fails with permission denied — stage the extender beside the teamserver config instead. Writes the binary to output_dir and returns its path. Never overwrites an earlier build.

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": "<agent>",
      "listener_name": "<listener_name>",
      "config": "<config>"
    },
    "name": "adaptix_agent_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesAgent kind: beacon, kharon or gopher.
labelNoTag folded into the filename so builds for several hosts never collide or overwrite: pass the target IP or hostname (agent-10.10.10.5.exe). Omitted = the teamserver's own name, with -2/-3 appended rather than overwriting.
configYesJSON string of the agent's build options.
output_dirNoDirectory to write the artifact (default ADAPTIX_OUTPUT_DIR or ./adaptix-artifacts).
listener_nameYesListener name the agent calls back to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the single destructiveHint annotation, the description discloses the write side effect (binary written to output_dir), the return value (the path), a non-overwrite guarantee, and the fact that gopher/kharon compile from source inside the install tree, which causes permission-denied failures on root-owned installs. This is exactly the kind of extra context the annotation alone cannot convey: an agent reading only destructiveHint=true would not know that the tool creates new files and never clobbers prior builds.

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?

The definition is one dense paragraph, but it puts purpose first and then covers parameters and caveats in order, so no sentence is wasted. Readability suffers slightly from nested parentheses and semicolon chains, especially in the agent-option enumeration; a short list format would have been easier to scan.

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?

No output schema exists, and the description compensates by stating what is written and what is returned ('Writes the binary to output_dir and returns its path'). The build-option schemas for two agent families, the filename/label behavior, the output directory default reference, and the install-tree permission caveat together cover everything an agent needs to invoke this correctly.

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 3 would be the baseline, but the description adds substantial meaning that the schema does not have: it expands the opaque `config` JSON string into per-agent option sets (arch, format, sleep as STRING, jitter as INT, reconn_timeout as STRING, reconn_count as INT) and explains that label folds into the filename with -2/-3 suffixes when omitted. That is decisive value for a free-form JSON parameter.

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?

The first sentence states a specific verb and resource: 'Build an agent artifact.' The remaining text narrows the scope further by naming each supported agent kind (beacon, kharon, gopher) and describing the context in which an agent is selected (calling back to a listener). This makes the definition clearly distinct from the user of other sibling tools such as adaptix_agent_list, adaptix_agent_remove and adaptix_agent_link.

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 gives explicit operating guidance, not just a description: beacon is Windows-only, gopher covers linux|windows|macos, and label should be the target IP or hostname so builds for several hosts never collide. It also gives a concrete contingency for the failure mode 'root-owned install fails with permission denied — stage the extender beside the teamserver config instead.' It does not name a sibling alternative for any situation, hence 4 rather than 5.

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