Skip to main content
Glama

Replay Inject

replay_inject
Destructive

Inject synthetic packets into a running replay session to drive app features on demand, building each packet from a specified kind and arguments for live testing.

Instructions

Inject packets into a running replay session to drive app features on demand.

Builds a packet from kind and args and sends it on the live connection. A geofence example: 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>",
      "kind": "<kind>"
    },
    "name": "replay_inject"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoFields for `kind`. `waypoint` takes `lat`, `lon`, `name`, `geofence_radius`, `bbox`, `notify_on_enter`, `notify_on_exit`, `notify_favorites_only`, `icon`; `position` takes `lat`, `lon`, `altitude`; `text` takes `body`; `nodeinfo` takes `id`, `long_name`, `short_name`, `hw_model`, `role`; `raw` takes `portnum`, `payload_hex`.
fuzzNo`True` runs each packet through the session's fuzz mutator first.
kindYes`waypoint`, `position`, `text`, `nodeinfo` or `raw`.
countNoHow many copies to send.
channelNoChannel name to send on.LongFast
to_nodeNoDestination node number; omit to broadcast.
from_nodeNoSender node number; omit for a synthetic injector node.
session_idYesSession id from `replay_start`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=false, so the safety profile is supplied structurally. The description adds that packets go out on a live connection and notes the `{id, queued, connected}` / `{error}` outcome, but it never explains the destructive/irreversible side (what a bad inject does to the running session) or what `queued` versus `connected` implies about delivery.

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 short paragraphs, front-loaded with the action and followed by the mechanism and return shape; the docs reference is compact. Nothing is redundant, though the trailing return-value sentence partly duplicates the output schema.

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

Completeness3/5

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

With 8 parameters, full schema coverage, an output schema and rich annotations, the definition covers enough to invoke the tool correctly. What is missing is selection context: an agent facing five replay_inject_* siblings plus inject_frame has no basis from this description for choosing this one over them.

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 every parameter including the per-kind `args` field list is documented in the schema, so the schema carries the burden. The description only adds the conceptual relationship 'packet is built from `kind` and `args`' and a docs pointer; it adds no semantics for `count`, `channel`, `to_node`, `from_node` or `fuzz` beyond what is already structured.

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 gives a specific verb and resource ('Inject packets into a running replay session') plus the mechanism ('Builds a packet from `kind` and `args` and sends it on the live connection'). It is clear what the tool does, but it never distinguishes itself from the specialized siblings (replay_inject_waypoint, replay_inject_beacon, replay_inject_traceroute), which appear to overlap heavily with the generic path.

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?

Usage context is implied ('to drive app features on demand') and the prerequisite that a session must already be running is stated via 'session_id from `replay_start`'. However, there is no when-not guidance and no routing between this generic injector and the specialized replay_inject_* variants, which is exactly the choice an agent must make.

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