Skip to main content
Glama

Replay Inject Waypoint

replay_inject_waypoint
Destructive

Inject a geofenced waypoint packet into a Meshtastic replay session to simulate node boundary crossings and test enter/exit notifications.

Instructions

Inject a WAYPOINT_APP packet (portnum 8), geofence included, into a replay session.

Set geofence_radius, bbox or both, then move a node across the boundary with replay_inject(sid, "position", {"lat": ..., "lon": ...}, from_node=<tracker>). 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>",
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "replay_inject_waypoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesWaypoint latitude in decimal degrees.
lonYesWaypoint longitude in decimal degrees.
bboxNoGeofence box `[south, west, north, east]` in decimal degrees.
iconNoIcon as a Unicode code point; 0 sets none.
nameNoWaypoint name.
countNoHow many copies to send.
channelNoChannel name to send on.LongFast
from_nodeNoSender node number; omit for a synthetic injector node.
session_idYesSession id from `replay_start`.
descriptionNoWaypoint description.
notify_on_exitNoNotify when a node leaves the geofence.
geofence_radiusNoGeofence circle radius in meters; 0 for none.
notify_on_enterNoNotify when a node enters the geofence.
notify_favorites_onlyNoNotify only for favorite nodes.

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 profile is known; the description adds the dependency on a live session and the `{error}` outcome for an unknown session id. It never explains why the operation is destructive (e.g. that it mutates replay session state or sends packets on a real channel) and the `{id, queued, connected}` return shape is already captured by the output schema.

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?

Front-loaded with the what, then a workflow line, then the return/error contract — no filler sentences. The invocation example reads a bit dense but carries real information rather than padding.

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?

For a 14-parameter destructive injection tool the description covers the packet type, geofence interplay, and failure mode, and the output schema plus 100% param coverage carry the rest. It still omits why the call is flagged destructive and what sending N copies on a named channel implies, which matters for a non-idempotent write.

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 description coverage is 100%, so baseline is 3; the description adds genuine cross-parameter semantics by explaining that `geofence_radius` and `bbox` are an either/or/both choice that gates notify behavior, and that `lat`/`lon` are exercised through the sibling injector. It does not touch `count`, `channel`, `icon`, or the notify_* flags, but those are self-documented.

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?

Names a specific verb and resource ('Inject a WAYPOINT_APP packet (portnum 8)... into a replay session'), and the portnum detail distinguishes it from the other replay_inject_* siblings that carry different packet types. An agent can tell what is produced without opening the 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 a concrete usage recipe: set `geofence_radius`, `bbox` or both, then move a node across the boundary via `replay_inject(sid, "position", ...)`, which also routes the agent to the sibling needed to actually trigger geofence events. Lacks explicit when-not-to-use guidance versus replay_inject_beacon or the other packet injectors.

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