Skip to main content
Glama

Config Snapshot

config_snapshot
Destructive

Captures a Meshtastic device's full local and module configuration into a named snapshot before firmware upgrades or config batch changes, so you can compare and track what changed.

Instructions

Capture the device's full config (localConfig + moduleConfig) to a named snapshot.

Snapshots persist under the MCP data dir. Use before a firmware upgrade or config batch, then config_diff to see what changed. Overwrites an existing snapshot of the same name.

Returns {ok, name, path, local_sections, module_sections}.

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

Input Schema

NameRequiredDescriptionDefault
nameYesSnapshot name; [A-Za-z0-9._-] only.
portNoSerial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device.

Output Schema

NameRequiredDescriptionDefault
okYes
nameYes
pathYes
local_sectionsYes
module_sectionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, and the description adds the specific consequence that matters: 'Overwrites an existing snapshot of the same name', plus where snapshots persist (MCP data dir). It does not cover failure modes such as no device found or serial errors, but it goes meaningfully beyond the annotation flags.

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

Conciseness5/5

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

Four short sentences, front-loaded with the action and scope, then persistence, then the workflow trigger and the overwrite caveat, then the return shape. Nothing is repeated and every sentence carries distinct information.

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 and the description still summarizes the return keys, persistence location, overwrite behavior, and the intended workflow. For a two-parameter snapshot tool with full annotation coverage, an agent has everything needed to call it 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 both parameters are documented in structured form and the baseline would be 3. The description adds real meaning for `name` by stating the collision rule (an existing snapshot of the same name is overwritten), which the schema does not say; `port` semantics are left entirely to the schema.

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 description names a specific verb and resource ('Capture the device's full config (localConfig + moduleConfig) to a named snapshot') and scopes exactly what is captured, so the agent knows this creates a persisted snapshot rather than reading live config. It does not explicitly distinguish itself from siblings like config_snapshots_list or get_config, which keeps it short of a 5.

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 gives a concrete trigger ('Use before a firmware upgrade or config batch') and names the natural follow-up tool (config_diff) for the comparison step. There is no explicit when-not guidance or reference to config_snapshots_list for enumerating existing snapshots, so it stops at clear context rather than full routing.

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