Skip to main content
Glama

List Nodes

list_nodes
Read-onlyIdempotent

Retrieve a Meshtastic device's current node database, including the local node and known peers, with role, position, signal, battery, and last-heard details.

Instructions

Return the device's current node database (local node + all known peers).

Returns [{node_num, user: {long_name, short_name, hw_model, role}, position, snr, rssi, last_heard, battery_level, is_favorite}] as JSON.

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

Input Schema

NameRequiredDescriptionDefault
portNoSerial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device.
formatNo`json` (default) or `table` (Markdown). Use `table` when there are many nodes: repeating every field name per row in JSON costs ~7k tokens for 100 nodes, and a table header appears once.json
timeout_sNoSeconds to wait for the node to answer.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorldHint, so safety and repeatability are covered without help from the description. The description adds only the scope clarifier (local node + peers); it says nothing about that this is a live radio query whose cost scales with node count, or what happens if the device is unreachable.

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?

Two sentences, scope front-loaded, zero filler. The field-list sentence partially duplicates the output schema, which is the only mild redundancy, but it is short and readable.

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?

With rich annotations, an output schema, and full parameter coverage, the definition supplies everything needed to call the tool correctly. The one missing note is operational: that this performs a live device query whose latency is governed by timeout_s and which fails when no device is reachable.

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% and the schema itself already explains the port auto-selection, the json/table token tradeoff, and the timeout default, so the description need not compensate. It mentions only the JSON output form and adds no meaning to port, format, or timeout_s.

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 specific verb ('Return') and a precisely scoped resource ('the device's current node database (local node + all known peers)'), so an agent knows exactly what data comes back. It does not differentiate itself from nearby siblings such as list_devices or device_info, leaving that routing to the agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no prerequisites (e.g. that the device must be reachable over serial/TCP), and no mention of when a sibling like list_devices or device_info would be preferred. The only hint is the parenthetical scope, which is descriptive rather than prescriptive.

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