Skip to main content
Glama

Adopt Vanity Identity

vanity_apply
Destructive

Writes a vanity private key to a Meshtastic device, replacing its node identity and moving it to the matching NodeNum; requires confirmation because peers and admin references must be updated.

Instructions

Write a vanity private key to a device, moving it to the matching NodeNum.

Destructive: it replaces the node's identity. Peers keep the old public key until they see the new NodeInfo, and anything naming the old node (admin keys, DM history) must be re-pointed; keep the old key for a way back. Requires confirm=True, or the user's answer when the client can ask (always, with MESHTASTIC_MCP_CONFIRM=human), a clamped key, and lora.region set, since firmware will not derive keys while it is UNSET. The board reboots (~7 s). See docs/vanity.md.

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

Input Schema

NameRequiredDescriptionDefault
portNoSerial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device.
verifyNoReconnect after the reboot and check the new number.
confirmNo`True` once the user agreed; omitted, a client that can ask prompts the human.
private_keyYesThe vanity private key, hex or base64, as `vanity_grind_poll` or `vanity_preview` shows it.
verify_timeout_sNoSeconds `verify` waits for the node to come back.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: it says exactly what is destroyed (the node's identity), what breaks downstream (peers cache the old public key; admin keys and DM history must be re-pointed), and that the board reboots for ~7 s. Those consequences are not derivable from any structured field.

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?

Front-loaded with the action and its consequence, then prerequisites, then the reboot cost and a docs pointer. No sentence is filler and there is no repetition of the title or schema.

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, non-idempotent, reboot-triggering mutation, the description covers consequences, confirmation mechanics, prerequisites, and recovery advice, and an output schema already exists so return values need no explanation. Nothing an agent needs before calling it is missing.

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 the baseline is 3, but the description adds real semantics: confirm can be satisfied by the client prompting the human (with MESHTASTIC_MCP_CONFIRM=human), and private_key format/source is pinned to what vanity_grind_poll or vanity_preview shows. The lora.region dependency on the key derivation is also stated here rather than in the schema.

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?

First sentence names a specific verb ('Write a vanity private key'), the resource (device), and the resulting state change ('moving it to the matching NodeNum'). The pairing with 'vanity_preview'/'vanity_grind_poll' in the private_key description makes the preview-vs-apply distinction obvious without opening either schema.

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 concrete prerequisites for invocation: confirm=True or a human answer, a clamped key, and lora.region set, plus the caution to keep the old key for a way back. It implies the key should come from a prior grind/preview step but never states an explicit when-not-to-use or fallback alternative in its own text.

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