Skip to main content
Glama

Send Text

send_text
Destructive

Send a text message over a Meshtastic mesh, either broadcast to all nodes or directed to a specific node, with optional acknowledgement requests and transmit confirmation.

Instructions

Send a text message over the mesh.

Delivery is async and best effort: by default this returns once the packet is queued. wait_for_tx=True also polls for the firmware's Started Tx (id=...) log line or a neighbor's rebroadcast. tx_confirmed is true (seen), false (logs flowed, no TX) or null (not observable, usually because firmware logs are not captured, which does NOT mean failure); call set_debug_log_api(True) on the port first to make it meaningful. tx_unconfirmed_reason says which case. packets_window cannot confirm a local send.

Returns {ok, packet_id, destination}, plus {tx_confirmed, tx_latency_s, tx_unconfirmed_reason?} with wait_for_tx=True.

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": {
      "text": "<text>"
    },
    "name": "send_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoA node id ("!abcdef01") or number to direct-message; omit to broadcast ("^all").
portNoSerial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device.
textYesThe message.
want_ackNoAsk the recipient for an acknowledgement.
tx_linger_sNoSeconds to hold the connection open after the send, so the firmware's ~4 s politeness delay and the airtime finish before the port resets, which would drop a queued broadcast.
wait_for_txNoAlso wait for evidence that the packet reached the air.
tx_timeout_sNoSeconds `wait_for_tx` polls before giving up.
channel_indexNoThe channel to send on.

Output Schema

NameRequiredDescriptionDefault
okYes
packet_idYes
destinationYes`^all` for a broadcast
tx_confirmedNotrue: TX seen; false: logs flowed and showed no TX; null: not observable, usually because firmware logs are not captured, which is not a failure
tx_latency_sNo
tx_unconfirmed_reasonNowhy `tx_confirmed` is false or null

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

The description goes well beyond annotations by disclosing the async/best-effort delivery model, the tri-state meaning of tx_confirmed (true/false/null) and specifically that null does NOT mean failure, plus what tx_unconfirmed_reason explains. This is exactly the behavioral context an agent needs before trusting the result, and nothing contradicts the destructive/openWorld hints.

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?

The purpose and async caveat are front-loaded, and nearly every sentence carries operational detail. It is dense with backticked field names and could be slightly easier to scan, but there is no redundant filler.

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

Completeness5/5

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

An output schema exists, yet the description still names the return shape for both default and wait_for_tx paths, and it covers the prerequisite and the misleading-null pitfall. For an 8-parameter network-write tool, this is complete enough to call correctly.

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, and the description adds real meaning: it explains what wait_for_tx polls for, why set_debug_log_api is needed for tx_confirmed to be meaningful, and what the returned confirmation fields imply. It leaves tx_linger_s, want_ack, and channel_index to the schema descriptions rather than elaborating further.

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 first line states a specific verb and resource ('Send a text message over the mesh'), which is unambiguous against siblings like packets_window or send_input_event. It doesn't explicitly name an alternative sending tool, but the resource is narrow enough that confusion is unlikely.

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 clearly frames the default as async/best-effort and states the condition for opting into confirmation ('wait_for_tx=True'), including the prerequisite of calling set_debug_log_api(True) first. It also rules out an alternative ('packets_window cannot confirm a local send'), which is genuine when/when-not guidance, though it doesn't discuss broadcast-vs-DM choice.

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