Skip to main content
Glama

Factory Reset

factory_reset
Destructive

Resets a connected Meshtastic node to factory defaults, optionally erasing identity and keys. Requires explicit confirmation before wiping device configuration.

Instructions

Factory-reset the connected node.

Requires confirm=True, or the user's answer when the client can ask (always, with MESHTASTIC_MCP_CONFIRM=human). An nRF52 in UF2 mode, with no app running to take this call, is wiped by nrf52_factory_erase.

Returns {ok, full}.

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

Input Schema

NameRequiredDescriptionDefault
fullNo`full=True` also wipes device identity/keys, not just config.
portNoSerial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device.
confirmNo`True` once the user agreed; omitted, a client that can ask prompts the human.

Output Schema

NameRequiredDescriptionDefault
okYes
fullYesidentity and keys wiped too

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already establish destructive=true and readOnly=false, but the description adds important behavior: confirm=True or human confirmation is required, and MESHTASTIC_MCP_CONFIRM=human changes prompting behavior. It also discloses the UF2 edge case where no app can handle the call.

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?

The definition is short and front-loaded, with the purpose first and the confirmation requirement next. The return-value sentence is slightly redundant because an output schema exists, but it is not harmful.

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 destructive tool with rich annotations, full schema descriptions, and an output schema, the description covers the critical confirmation behavior and sibling routing. It is complete enough for correct invocation, though it could state more plainly that full=True wipes identity/keys, a detail currently left to the 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 description coverage is 100%, so the baseline is 3. The description reinforces confirmation behavior but does not add meaningful semantics for full or port beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Factory-reset the connected node.' It also distinguishes the tool from the sibling nrf52_factory_erase for the UF2-mode edge case, so an agent can identify its role without opening schemas.

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 clear usage context around confirmation and explicitly routes the nRF52 UF2 case to nrf52_factory_erase. It lacks a broader statement of when factory reset is appropriate versus safer alternatives, but the key exception is well covered.

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