Skip to main content
Glama

ghostlan_up

Create a named virtual LAN with 1–N isolated Linux virtual PCs. Configure optional NAT, Xvfb GUI displays, audio isolation, and default network shaping for controlled app testing.

Instructions

Create a named virtual LAN with 1..N isolated ghosts, optional --nat, --gui (Xvfb), and default netem

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>"
    },
    "name": "ghostlan_up"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNoCustom base directory for ghost dirs (e.g. disk path for large test files)
guiNoStart an isolated Xvfb virtual display per ghost
lanYesName of the virtual LAN (e.g. openavx-test)
natNoEnable NAT internet access and DNS
countNoNumber of ghosts to create if ghosts is omitted (defaults to 2)
ghostsNoOptional custom ghost names (e.g. ['tx','rx'])
screenNoVirtual display resolution (default 1280x720x24)
privateNoStore ghost dirs under $XDG_RUNTIME_DIR/ghostlan (0700) for per-user isolation on shared hosts
delay_msNoDefault latency in ms for all ghosts
loss_pctNoDefault packet loss % for all ghosts
jitter_msNoDefault jitter in ms for all ghosts
rate_kbpsNoDefault bandwidth cap in kbps for all ghosts
audio_nullNoStart an isolated per-ghost PipeWire + null audio sink (no host audio bleed)

Output Schema

NameRequiredDescriptionDefault
guiYes
natYes
nameYes
bridgeYes
ghostsYes
screenNo
subnetYes
base_dirYes
data_dirNo
owner_gidYes
owner_uidYes
audio_nullNo
created_atYes
gateway_ipYes
uplink_ifaceNo
default_netemNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose real behavioral traits — per-ghost isolation, a default netem profile applied to all ghosts, Xvfb display isolation, and private 0700 dirs under $XDG_RUNTIME_DIR — but omits idempotency, failure/rollback behavior, whether the call blocks until ghosts are ready, and that teardown requires ghostlan_down.

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?

One front-loaded sentence that names the resource and scope first, then the optional capabilities. It is efficient with no filler, though the flag-style notation and the dangling 'default netem' phrase cost a little clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a 13-parameter provisioning mutation with no annotations; an output schema covers return values, but the description says nothing about prerequisites, side effects on the host (processes, directories, network interfaces), lifecycle pairing with ghostlan_down, or what an agent should do if creation partially fails. That is a substantial gap for the most consequential tool in the family.

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 coverage is 100%, so every parameter is already documented, and the description adds no syntax or default detail beyond what the schema states. It also uses CLI-style flags ('--nat', '--gui') that don't match the actual parameter names nat/gui, which is mildly confusing rather than additive.

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?

States a specific verb and resource: 'Create a named virtual LAN with 1..N isolated ghosts', and enumerates the key optional capabilities (NAT, Xvfb GUI, netem defaults). An agent can tell this is the provisioning/creation entry point, implicitly the counterpart to ghostlan_down, 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 Guidelines2/5

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

There is no when-to-use guidance: nothing says whether this must precede ghostlan_start/ghostlan_exec, whether it fails if the LAN name already exists, or when to prefer it over reusing an existing LAN via ghostlan_ls/ghostlan_status. Usage is only inferable from the verb 'Create'.

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