Skip to main content
Glama
AdaptixC2 MCP Server

AdaptixC2 MCP Server

by VictorNS69

adaptix_agent_link

Destructive

Links a parent agent to a child pivot beacon over SMB or TCP, sends the link command, then verifies the child through an agent list diff and returns the confirmed record.

Instructions

Link a parent agent to a child pivot beacon (Adaptix linked agents). Builds link smb <target> <pipename> or link tcp <target> <port>, sends it on the raw endpoint, then verifies against a before/after /agent/list diff (falling back to the parent task message [<parent>]===[<child>]) and returns verified, detected_by and the child record. A linked child receives its commands THROUGH the parent, so it renders chained in the Sessions Graph rather than as a relay edge: prefer it over rportfwd, which dies when the parent beacon restarts and carries only the registration exchange. Note that a linked child's a_last_tick stays at its registration time — liveness is proven with a command plus adaptix_task_list, not with the tick.

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>",
      "link_type": "<link_type>",
      "target": "<target>"
    },
    "name": "adaptix_agent_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoPort, required for link_type=tcp.
targetYesChild beacon host (IP or hostname) that hosts the pipe/port.
agent_idYesAgent id from adaptix_agent_list.
pipenameNoPipe name, required for link_type=smb.
link_typeYessmb for a BeaconSMB child (named pipe), tcp for a BeaconTCP child.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only supply destructiveHint=true; the description adds substantial context beyond that — the raw-endpoint send, the before/after /agent/list verification with a fallback detection path via the parent task message, the returned fields (verified, detected_by, child record), and the persistent routing consequence of the child rendering chained in the Sessions Graph. It stops short of stating how the link is undone or any permission/authorization requirements, which is the remaining gap for a state-changing operation.

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 the action and command shape, then layered with verification, then the rportfwd comparison and the liveness caveat, so the most important information comes first. It is dense — the parenthetical fallback marker `[<parent>]===[<child>]` and the verification internals are close to implementation detail — but each clause carries operational meaning rather than filler.

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?

With no output schema, the description still tells the agent what comes back (verified, detected_by, the child record), how success is determined, what side effect the link has on command routing, and how to check liveness afterward. For a state-changing tool with only one annotation, this covers everything needed to call it and interpret the result correctly.

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 the baseline is 3, but the description earns credit by mapping parameters into the concrete command form, making it explicit that link_type selects whether pipename or port is the operative field and that target is the child's host. That reinforces the conditional requirements in a way the schema only states declaratively.

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 description opens with a specific verb and resource ('Link a parent agent to a child pivot beacon'), then names the exact underlying commands built (`link smb <target> <pipename>` / `link tcp <target> <port>`), so the agent knows precisely what operation is performed. It also distinguishes the result from a relay edge and from rportfwd, separating it from plausible siblings without needing to open any 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?

It states an explicit alternative and the condition selecting it: 'prefer it over rportfwd, which dies when the parent beacon restarts and carries only the registration exchange.' It also directs the agent to the correct follow-up tool for liveness ('proven with a command plus adaptix_task_list, not with the tick'), which prevents a predictable misuse of the tick field.

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