Skip to main content
Glama

ghostlan_capture

Capture live packets from a ghost’s host-side veth into a .pcap file for network troubleshooting and analysis; requires CAP_NET_RAW.

Instructions

Capture live packets on a ghost's host-side veth into a .pcap file (requires CAP_NET_RAW)

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": {
      "lan": "<lan>",
      "ghost": "<ghost>"
    },
    "name": "ghostlan_capture"
  }
}

Input Schema

NameRequiredDescriptionDefault
lanYesName of the virtual LAN
ghostYesGhost name inside the LAN
out_pathNoOptional output .pcap file path
max_packetsNoMax packets to capture (default 2000)
duration_secNoCapture duration in seconds (default 5)

Output Schema

NameRequiredDescriptionDefault
tcpYes
udpYes
icmpYes
bytesYes
packetsYes
pcap_pathYes
duration_secYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry behavior, and it does disclose the privilege requirement and that output lands in a .pcap file. It omits other operationally important traits: whether the call blocks for duration_sec, whether an existing out_path is overwritten, and what happens when max_packets or duration_sec is hit first.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence: action, target, artifact, then the prerequisite in parentheses. Nothing is redundant and nothing is buried.

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 five-parameter tool with an output schema and full schema coverage, the description covers purpose, target, output artifact, and the privilege gate. It falls just short of complete by not addressing blocking duration or file-overwrite semantics, which matter for a capture that runs for a bounded time.

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?

Schema description coverage is 100%, so all five parameters including defaults for max_packets and duration_sec are already documented in structured form. The description adds no syntax, format, or interaction detail (e.g. precedence between max_packets and duration_sec), so the baseline 3 applies.

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 specific verb (capture) and a precise resource (live packets on a ghost's host-side veth) plus the artifact produced (.pcap file). The word 'live' implicitly separates it from the sibling ghostlan_capture_inspect, which by name operates on existing captures, so an agent can pick between them without opening schemas.

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?

The definition supplies a real precondition (requires CAP_NET_RAW), which is actionable context for choosing the tool. However, it never states when to use this versus ghostlan_capture_inspect or what to do if the capability is missing, so usage is only implied.

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