Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Beacon / periodic-communication detection

c2_beacon_detect
Read-onlyIdempotent

Analyze packet captures to detect beacon-like periodic C2 communication by flagging regular timing, consistent payload sizes, jitter-corrected and DNS patterns, with jitter and confidence metrics.

Instructions

Detect beacon-like periodic communication: group packets by destination IP and port, compute inter-arrival deltas, then flag conversations with a low coefficient of variation (regular timing), enough samples, and small consistent payload sizes. Also flags jitter-corrected patterns and DNS-based beaconing. Returns measured jitter, packet counts and confidence with false-positive notes.

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": {
      "pcapPath": "<pcapPath>"
    },
    "name": "c2_beacon_detect"
  }
}

Input Schema

NameRequiredDescriptionDefault
pcapPathYesPath to the artifact, relative to the authorized workspace root.
minPacketsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish a safe read-only, idempotent, closed-world operation, and the description goes further by disclosing the detection heuristics, the jitter-corrected and DNS beaconing variants, and what the response contains (measured jitter, packet counts, confidence, false-positive notes). That is substantive behavior beyond the structured hints.

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?

Two sentences, front-loaded with the core action and method, with the return values grouped at the end. Jargon is dense but every clause carries technical meaning; no filler.

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 no output schema, the description is nearly self-sufficient: it explains the algorithm and enumerates the return fields. The only real gap is the unexplained minPackets threshold, which matters for tuning sensitivity.

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?

pcapPath is covered by the schema, but minPackets has no schema description and the prose only alludes to 'enough samples' without naming or explaining the threshold parameter or its 2–10000 range. With 50% coverage, the description partially but not fully compensates.

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 states a specific verb and resource ('detect beacon-like periodic communication') and outlines the actual method (group by destination IP/port, compute inter-arrival deltas, flag low coefficient of variation). An agent can tell this apart from a general protocol analyzer, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is implied by the detection logic (regular timing, enough samples, small consistent payloads) but there is no explicit statement of when to prefer this over c2_protocol_analyze or what input artifact is required. The reader must infer the scenario from the criteria described.

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

Deploy Server

Other Tools