Skip to main content
Glama

ghostlan_netem_set

Apply live tc netem packet loss, delay, jitter, corruption, duplication, or bandwidth caps to a virtual PC in a virtual LAN to test apps under degraded network conditions.

Instructions

Apply live tc netem packet loss, delay, jitter, corruption, duplication, or bandwidth cap to a ghost

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_netem_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
lanYesName of the virtual LAN
ghostYesGhost name inside the LAN
delay_msNoAdded latency in ms
loss_pctNoPacket loss percentage (0-100)
jitter_msNoLatency jitter in ms
rate_kbpsNoBandwidth cap in kbps (0 = unlimited)
corrupt_pctNoPacket corruption percentage (0-100)
duplicate_pctNoPacket duplication percentage (0-100)

Output Schema

NameRequiredDescriptionDefault
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With zero annotations, the description carries the full burden and does little beyond "live": it does not say whether a call replaces or accumulates existing netem rules, whether elevated permissions are needed, whether settings persist across restarts, or how to revert. For a live network-mutation tool this is a significant gap, though "live" does disclose immediancy of effect.

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 listing verb, mechanism, and affected dimensions, with no filler. Every clause corresponds to a parameter family the agent will actually set.

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?

An output schema exists, so return values need not be described, and the parameter surface is fully documented in the schema. What's missing is the mutation lifecycle context—replacement semantics and how to undo via ghostlan_netem_clear—which matters for a tool that changes live traffic.

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 the six impairment parameters are already documented with units, ranges, and the "0 = unlimited" convention. The description only restates the impairment categories that map to those parameters, adding grouping meaning but no new syntax or defaults.

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 pairs a specific verb ("Apply") with a precise resource ("tc netem ... to a ghost") and enumerates the impairment types, so an agent knows exactly what operation this performs. It stops short of naming ghostlan_netem_clear as the inverse operation, so sibling differentiation must be inferred from the name alone.

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?

The word "live" hints that changes take effect on running traffic, but there is no explicit statement of when to use this versus ghostlan_netem_clear, no prerequisites (e.g., the ghost must be up), and no note on whether to clear existing rules first. An agent is left to infer the workflow.

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