Skip to main content
Glama

Device Info

device_info
Read-onlyIdempotent

Connect to a Meshtastic node via serial or TCP, auto-select the likely device, and return identity, firmware, hardware, region, channel, and node summary; timeout hints if USB serial is wedged.

Instructions

Connect via meshtastic.SerialInterface and return a summary of the node.

A board whose USB serial has wedged fails after timeout_s plus a short grace with a hint to power-cycle it (uhubctl_cycle).

Returns {port, my_node_num, long_name, short_name, firmware_version, hw_model, region, num_nodes, primary_channel, modem_preset, channel_num, display}.

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": "device_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoSerial port or `tcp://host[:port]`. Omitted, the one likely-Meshtastic device is auto-selected; otherwise the tool errors with the candidate list.
timeout_sNoSeconds to wait for the node to answer.

Output Schema

NameRequiredDescriptionDefault
portNo
regionNo
displayNo
hw_modelNo
long_nameNo
num_nodesNo
short_nameNo
channel_numNo
my_node_numNo
modem_presetNo
primary_channelNo
firmware_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and openWorld, so safety is covered. The description goes further by disclosing the connection mechanism, the failure timing (`timeout_s` plus a short grace) and the remediation hint, which is meaningful operational context an agent could not get from annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the action and stays to three sentences, but the final clause enumerates the full return object even though an output schema exists, so that sentence largely duplicates structured data rather than earning its place.

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 two-parameter, annotation-rich, output-schema-backed probe, this covers the operation, the ports accepted, the timeout semantics, and the failure path. Nothing an agent needs in order to call it correctly is missing, though the return-field enumeration is superfluous given the output schema.

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 coverage is 100%, and the schema already documents the `tcp://host[:port]` form, auto-selection, and the error-with-candidate-list behavior. The description adds only the nuance that failure occurs after `timeout_s` plus a short grace, a small increment over the schema baseline.

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?

States a concrete verb and resource: connect through meshtastic.SerialInterface and return a summary of the node. It does not explicitly distinguish itself from siblings like list_devices, list_nodes, or esptool_chip_info, but the serial-connection framing makes the operation recognizable.

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?

The description names one alternative (`uhubctl_cycle`) but only in the recovery path after a wedged USB serial failure, which is a strong conditional cue. It gives no guidance on when to pick this over list_devices or list_nodes for enumeration, so the core when-to-use decision is left implicit.

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