Skip to main content
Glama

Replay Inject Traceroute

replay_inject_traceroute
Destructive

Inject a TRACEROUTE_APP RouteDiscovery reply into a running replay session to simulate an observed traceroute and test how an app displays it.

Instructions

Inject a TRACEROUTE_APP RouteDiscovery reply into a running replay session.

The reply references no request, so an app records it as an observed traceroute, not as the answer to one it sent; to test the request UI, send a traceroute from the app, which the engine answers itself. See docs/replay.md.

Returns {id, queued, connected}, or {error} for an unknown session.

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": {
      "session_id": "<session_id>",
      "destination_node": "<destination_node>"
    },
    "name": "replay_inject_traceroute"
  }
}

Input Schema

NameRequiredDescriptionDefault
routeNoNode numbers along the path, destination last; omitted, the path is `[from_node, destination_node]`, or a synthetic origin-relay-destination path when `from_node` is omitted too.
channelNoChannel name to send on.LongFast
snr_backNoPer-hop SNR on the return path; omitted, none are sent.
from_nodeNoSender node number; omit to send from `destination_node`.
route_backNoNode numbers along the return path, source last.
session_idYesSession id from `replay_start`.
snr_towardsNoPer-hop SNR towards the destination; omitted, none are sent.
destination_nodeYesThe responding node's number.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotent, so the safety profile is carried structurally; the description adds real meaning by explaining that the injected reply is recorded as an observed traceroute rather than an answer, and that an unknown session yields {error}. It does not explain why the operation is destructive to session state or whether repeated calls accumulate entries, which would complete the picture.

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?

Three short paragraphs, front-loaded with the action, then the behavioral nuance, then the return shape. No filler, and the docs pointer is placed last where it does not obstruct the core instruction.

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 an 8-parameter mutation with a fully documented schema and an output schema, the description covers the essentials: what is injected, how the receiving app interprets it, and the failure mode. The remaining gap is that it never states an active-session precondition in tool-name terms or explains the destructive effect on session state.

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% and the schema itself documents defaults and derivation rules for route, from_node, and the SNR arrays, so the baseline of 3 applies. The description adds nothing per-parameter beyond noting what is being injected, deferring entirely to the schema.

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?

"Inject a TRACEROUTE_APP RouteDiscovery reply into a running replay session" gives a specific verb (inject), a specific payload type (TRACEROUTE_APP RouteDiscovery reply), and a specific target (a running replay session), which distinguishes it from the other replay_inject_* siblings. It also states the key semantic property that the reply references no request.

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

Usage Guidelines4/5

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

It gives a clear when-not-to-use condition: to exercise the request UI, send a traceroute from the app and let the engine answer it, rather than injecting a reply. It also scopes the tool to a "running replay session," implying replay_start is a prerequisite, though it never names that sibling explicitly.

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