Skip to main content
Glama

Set Config

set_config
DestructiveIdempotent

Set one Meshtastic config field by dot-path to update device settings; firmware saves it automatically, and no reboot call is needed to commit.

Instructions

Set one config field via dot-path and write it to the device.

Idempotent: calling with the same path+value twice leaves identical state. The firmware saves the change itself, and most sections (such as network) restart the radio on their own, so the device may drop off the port for a few seconds. On firmware 2.8.0 and later the lora section applies live without a restart; older firmware restarts for it too. No reboot() call is needed to commit.

Returns {ok, path, section, parent, old_value, new_value}.

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": {
      "path": "<path>",
      "value": "<value>"
    },
    "name": "set_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDot-path of one scalar field, such as "lora.region", "lora.modem_preset", "device.role", "mqtt.enabled" or "mqtt.address".
portNoSerial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device.
valueYesThe new value, such as "US", "LONG_FAST", "ROUTER", True or "host". Enum fields accept their name (case-insensitive) or int.

Output Schema

NameRequiredDescriptionDefault
okYes
pathYes
parentYes`localConfig` or `moduleConfig`
sectionYes
new_valueYesenum fields by name
old_valueYesenum fields by name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the firmware persists the change itself, that most sections restart the radio and the device may drop off the serial port for a few seconds, and that firmware 2.8.0+ applies the lora section live while older firmware restarts. These are exactly the operational side effects an agent needs before invoking a destructive write.

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 core action, then idempotency, then the restart caveat, then the return shape. Every sentence carries information, though the firmware-version nuance is slightly dense and could be tightened.

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?

For a destructive, open-world write tool, the description covers persistence, idempotency, connection-drop risk, firmware-dependent behavior, and even the return shape despite an output schema existing. Nothing material is missing for correct invocation.

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%, so the schema already documents path, value, and port with examples and enum handling. The description reinforces the dot-path concept but adds no syntax or format detail beyond what the schema provides, so the baseline 3 applies.

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 and resource ('Set one config field') plus the mechanism ('via dot-path') and the effect ('write it to the device'). This implicitly separates it from specialized setters like set_owner or set_channel_url, but it never names an alternative explicitly, so sibling differentiation is inferred rather than stated.

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?

Usage context is clear: one scalar field at a time, addressed by dot-path, with example paths given. It also pre-empts a wrong turn by stating 'No reboot() call is needed to commit', which steers the agent away from the reboot sibling, though it gives no explicit when-not guidance or pointer to get_config for reading current values.

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