Skip to main content
Glama

Config Diff

config_diff
Read-onlyIdempotent

Compare two Meshtastic config snapshots or a snapshot against the live device, returning changed, added, and removed dot-path fields for quick configuration review.

Instructions

Diff two config snapshots, or one snapshot against the live device.

Fields are keyed by dot-path, e.g. "localConfig.lora.region".

Returns {from, to, changed: {path: {from, to}}, added, removed, identical}.

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_a": "<name_a>"
    },
    "name": "config_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoSerial port or `tcp://host[:port]` for a live diff; omit to auto-select the one likely Meshtastic device.
name_aYesThe snapshot to diff from.
name_bNoThe snapshot to diff to; omit to diff `name_a` against the current live device config, captured on the fly.

Output Schema

NameRequiredDescriptionDefault
toYes`name_b`, or `live` for the device
fromYes`name_a`
addedYesdot-path to value
changedYesdot-path to `{from, to}`
removedYesdot-path to value
identicalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds the dot-path keying convention and the result shape, but the result shape duplicates the existing output schema, and the live-capture behavior is already spelled out in the name_b schema description. Useful but largely redundant context.

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?

Three short sentences, front-loaded with the core purpose, then the keying convention, then the return shape. Nothing is wasted and the structure mirrors how an agent would need the information.

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, a full output schema, and 100% parameter coverage, the description only needs to establish purpose and the two modes, which it does. The one gap is that it never clarifies what a snapshot name refers to or how names are discovered (presumably via config_snapshots_list), leaving a small routing hole.

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 all three parameters (port, name_a, name_b) are already documented in the schema, including the auto-select and live-diff semantics. The description adds no parameter-level meaning beyond that; the dot-path example describes output keys, not inputs. 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 (diff) and resource (config snapshots) plus the two comparison modes, so an agent can immediately tell it apart from config_snapshot (which creates) and get_config (which reads). It stops short of naming any sibling explicitly, so it lands at 4 rather than 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?

Gives clear mode-selection guidance: supply name_b to compare two snapshots, or omit it to compare against the live device. It does not state when to prefer this over get_config or config_snapshot, and offers no exclusions, so it is clear context without full alternative routing.

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