Skip to main content
Glama

Replay Inject Beacon

replay_inject_beacon
Destructive

Injects a MESH_BEACON_APP packet into a running replay session to exercise Local Mesh Discovery without beaconing hardware.

Instructions

Inject a MESH_BEACON_APP packet (portnum 37) into a running replay session.

Exercises an app's Local Mesh Discovery without beaconing hardware. 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>"
    },
    "name": "replay_inject_beacon"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoHow many copies to send.
channelNoChannel name to send on.LongFast
messageNoBeacon text, at most 100 bytes on firmware.Mesh beacon — join the network
from_nodeNoSender node number; omit for a synthetic injector node.
session_idYesSession id from `replay_start`.
offer_presetNoModem preset the beaconed mesh advertises.LONG_FAST
offer_regionNoLoRa region the beaconed mesh advertises.US
offer_channel_nameNoName of a channel the app can offer to switch to.
offer_channel_psk_hexNoThat channel's PSK, in hex.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, so the mutation risk is covered structurally. The description adds the failure mode (unknown session returns {error}) and the success shape, but does not warn that injecting packets into a live session can perturb connected devices, which is the main behavioral concern — though with an output schema present, the return-value sentence is partly redundant.

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 sentences, front-loaded with the core action and port number, then the use case, then the return/failure contract. No filler or repeated title text.

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?

The tool has a rich schema, an output schema, and strong annotations, so the description only needs to establish scope and prerequisites — which it does. The only shortfall is not flagging the disruptive effect of injecting traffic mid-session, where the destructiveHint is declared but never explained.

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% across all nine parameters, so the schema carries full semantics including the offer_* fields and the 100-byte message limit. The description adds nothing about parameter meaning beyond citing portnum 37, so the baseline 3 applies.

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 (inject), a precise resource (MESH_BEACON_APP packet, portnum 37), and the target context (a running replay session). The second sentence explains the intent — exercising Local Mesh Discovery without hardware — which separates it from the generic replay_inject sibling.

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 a clear when-to-use context: testing an app's Local Mesh Discovery without beaconing real hardware, plus the prerequisite that the session must be running. It does not name alternatives (e.g. generic replay_inject or the other replay_inject_* variants) or state when not to use this one.

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