Skip to main content
Glama

Verify Runtime Through Chaos Proxy

verify_runtime

Run a local command in a time-bounded loopback proxy that simulates packet loss, jitter, bandwidth caps, and latency, returning runtime diagnostics and pass/fail telemetry for degradation smoke tests.

Instructions

Execute a local command inside an isolated, time-bounded loopback impairment and chaos proxy that simulates packet loss, jitter, bandwidth caps, and latency for a target link profile, returning structured runtime diagnostics and pass/fail telemetry. Use this to smoke-test networked or serial client behavior under realistic link degradation; use check instead for static code analysis without execution.

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": {
      "command": "<command>"
    },
    "name": "verify_runtime"
  }
}

Input Schema

NameRequiredDescriptionDefault
udpNoWhen true, route traffic over a UDP impairment proxy instead of TCP/HTTP (defaults to false).
commandYesLocal shell command to launch the target application or test harness (for example: 'python app.py').
profileNoOptional physical link profile ID (for example: lora-sf12 or ble-1m) defining latency, jitter, bandwidth, and loss parameters.
upstreamNoOptional upstream target host and port to forward proxied traffic to (for example: '127.0.0.1:8080').
probe_pathNoOptional HTTP endpoint path to actively probe through the impairment proxy during the test (for example: '/health').
duration_secsNoMaximum duration in seconds to run the smoke test before terminating the process and collecting diagnostics (defaults to 4 seconds).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.4.11
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / command / description
      Previous value: -"Shell command to run (e.g. 'python app.py')"New value: +"Local shell command to launch the target application or test harness (for example: 'python app.py')."
    • addedInput schema / properties / duration_secs / description
      Added value: +"Maximum duration in seconds to run the smoke test before terminating the process and collecting diagnostics (defaults to 4 seconds)."
    • addedInput schema / properties / duration_secs / minimum
      Added value: +1
    • changedInput schema / properties / probe_path / description
      Previous value: -"Optional HTTP path to probe through chaos proxy (e.g. /health)"New value: +"Optional HTTP endpoint path to actively probe through the impairment proxy during the test (for example: '/health')."
    • changedInput schema / properties / profile / description
      Previous value: -"Optional physical link profile (e.g. lora-sf12, ble-1m)"New value: +"Optional physical link profile ID (for example: lora-sf12 or ble-1m) defining latency, jitter, bandwidth, and loss parameters."
    • addedInput schema / properties / udp / description
      Added value: +"When true, route traffic over a UDP impairment proxy instead of TCP/HTTP (defaults to false)."
    • changedInput schema / properties / upstream / description
      Previous value: -"Optional target host:port to proxy to (e.g. 127.0.0.1:8080)"New value: +"Optional upstream target host and port to forward proxied traffic to (for example: '127.0.0.1:8080')."
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, openWorldHint=false, but the description adds real context beyond them: execution is isolated, time-bounded, runs a real local process, and returns diagnostics plus pass/fail telemetry. What it omits is risk disclosure — it launches an arbitrary local shell command, yet never says what privileges it runs with, what happens to child processes on termination, or what the diagnostics payload contains.

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 action and followed immediately by the routing guidance; no filler. The first sentence is dense and jargon-heavy ('loopback impairment and chaos proxy', 'link profile'), which costs a little readability, but each clause carries distinct information.

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?

With six parameters, no output schema, and present annotations, the definition covers the essentials and usefully states that it returns structured diagnostics and pass/fail telemetry, filling the missing output schema's role. It falls short on cleanup/termination semantics and on what the returned diagnostics look like, which matters for a tool that executes an arbitrary command.

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 every parameter is already documented in the input schema, making baseline 3 appropriate. The description only adds framing around 'target link profile' and time-boundedness, without elaborating on profile semantics, upstream forwarding behavior, or probe_path usage beyond what the schema states.

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 and resource — executing a local command inside an isolated, time-bounded loopback impairment/chaos proxy — and enumerates the impairments it simulates (packet loss, jitter, bandwidth caps, latency). It also names the sibling it is not ('check ... static code analysis without execution'), so an agent can separate the two without opening either 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?

Gives an explicit when-to-use ('smoke-test networked or serial client behavior under realistic link degradation') and an explicit when-not ('use check instead for static code analysis without execution'). The only mild gap is that it does not point at list_link_profiles as the source of profile IDs, but the selection condition against the primary confusable sibling is unambiguous.

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