Skip to main content
Glama

Replay Start

replay_start
Destructive

Stream a captured or simulated Meshtastic packet flow over TCP, restamped to now, so an app or library can connect and test as if a real device were live.

Instructions

Start a simulated Meshtastic TCP device that streams a capture to an app.

An app, an AVD at 10.0.2.2:<port>, or the Python library connects to host:port and gets a paced packet stream restamped to now. Poll replay_status, stop with replay_stop. Pacing, highest first: duration, then rate, then speed. Give concurrent sessions distinct observer_nums. Every parameter and example: docs/replay.md.

Returns the session status, as replay_status reports it: {id, capture, listen, connect, mode, packets_total, packets_sent, connected, ...}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "replay_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoWindow end, ISO-8601.
fuzzNoMakes the stream hostile: a preset (`light`, `parser`, `adversary`, `chaos`) or a dict of overrides with an optional `preset` base.
holdNoPlay the window once per connection, then stay connected and quiet; ignored with `loop`.
hostNoListen address; `0.0.0.0` serves every interface.0.0.0.0
kindNo`auto` infers it from `source`; or `sim`, `sqlite`, `jsonl`.auto
loopNoRepeat the window when it ends.
mdnsNoAdvertise the session over mDNS as `_meshtastic._tcp`; omit for on unless bound to loopback only.
portNoTCP port the session listens on for the app.
rateNoSteady packets per second, ignoring capture timing; wins over `speed`.
speedNoMultiplier on the capture's own cadence.
startNoWindow start, ISO-8601 (UTC when no zone is given).
sourceNo`meshcon`/`sim`, `burningman`, `defcon`, `conference-stress` (generated meshes), a `*.db`/`*.db.gz` SQLite capture or a recorder `*.jsonl`.meshcon
max_gapNoCap on idle seconds between packets.
channelsNoChannel list that splits a SQLite capture by OTA hash with real PSKs, each `{"name", "psk", "primary", "ota_hashes", "catch_all"}`.
durationNoPlay the whole window in N wall-clock seconds; wins over `rate`.
sim_daysNoDays of traffic a generated mesh spans, ending now unless `start` is set.
sim_seedNoSeed for a generated mesh.
fuzz_seedNoFuzz seed, so a crash reproduces.
sim_nodesNoNode count of a generated mesh.
dupe_everyNoSimulate a duplicate radio receive every Nth packet; 0 is off.
node_delayNoSeconds between NodeInfos during the node DB download.
limit_nodesNoCap on a file source's node DB.
sim_profileNoOverrides deep-merged over a generated preset, as a dict or JSON object, never a file path.
clock_anchorNoEpoch seconds the window's last packet is stamped as, so sessions sharing it show identical times; omit to stamp each packet now.
modem_presetNoAdvertised LoRa preset, such as `LONG_FAST`.LONG_FAST
observer_latNoConnected node's latitude in 1e-7 degrees; omit for the capture's median position.
observer_lonNoConnected node's longitude in 1e-7 degrees; omit for the capture's median position.
observer_numNoThis session's node number; omit for the process default (`MESHTASTIC_REPLAY_OBSERVER_NUM`).
beacon_listenNoAdvertise the mesh beacon module as listening, so the app keeps `MESH_BEACON_APP` packets.
stats_intervalNoSeconds between the connected node's LocalStats updates; 0 keeps only the initial snapshot.
firmware_editionNoThe app's event banner, such as `VANILLA`, `DEFCON`, `BURNING_MAN` or `HAMVENTION`.VANILLA
firmware_versionNoReported firmware build; omit for the edition's default.
announce_intervalNoSeconds between "Replay Clock" progress posts to the busiest channel; 0 is off.
local_metrics_intervalNoSeconds between the connected node's `DEVICE_METRICS` packets; 0 is off.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations mark this as destructive, non-idempotent, and non-read-only; the description supplies the behavior those hints don't cover – it opens a listening TCP socket (default 0.0.0.0), paces and restamps packets to now, honors hold/loop semantics, and advertises over mDNS. It never explicitly says a session holds the port until stopped, but the stop pointer largely covers that.

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?

Dense and front-loaded: purpose first, then connection model, then lifecycle routing, then pacing precedence, then concurrency, then the doc pointer. Every line carries operational information despite the terse line-broken formatting.

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 a 34-parameter server-launching tool with an output schema, the description covers connection, pacing, concurrency, and lifecycle, and defers exhaustive per-parameter detail to docs/replay.md. The one wasted element is restating the return shape, which the output schema already defines.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema only states piecewise: the precedence chain `duration` > `rate` > `speed`, and the requirement for distinct `observer_num` across concurrent sessions. It also points to docs/replay.md for every parameter and example.

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 concrete verb and resource: start a simulated Meshtastic TCP device streaming a capture to a connected app. It also names the lifecycle siblings (replay_status, replay_stop), so the agent can distinguish this from the poll/stop tools without opening a schema.

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?

Gives explicit operational routing: poll `replay_status` to follow progress and `replay_stop` to end the session, plus the concurrency rule to give each session a distinct `observer_num`. It does not frame when to choose replay_start over injection siblings such as `replay_inject`, but the lifecycle guidance is clear.

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