Skip to main content
Glama

Shutdown

shutdown
Destructive

Shuts down a connected Meshtastic node after a set delay, requiring confirmation before executing. Use it to power off a device remotely over serial or TCP.

Instructions

Shut down the connected node in seconds seconds.

Requires confirm=True, or the user's answer when the client can ask.

Returns {ok, shutting_down_in_s}.

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

Input Schema

NameRequiredDescriptionDefault
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.
secondsNoDelay before the node shuts down.

Output Schema

NameRequiredDescriptionDefault
okYes
shutting_down_in_sYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations declare destructiveHint=true and readOnlyHint=false, so the description does not need to prove the operation is a dangerous write. It does add value beyond them by disclosing the confirmation gate and the delay semantics, which the annotations do not cover. It does not say what happens to in-flight sessions or how to recover the node afterwards, so it is not a 5.

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: the operation, the precondition, and the return shape, in that order, with zero filler. The most important constraint is front-loaded with the operation.

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 annotations covering destructiveness and an output schema covering the return shape, the description only needs to add the confirmation gate and the delay, both of which it does. It is nearly complete for a 3-parameter destructive tool, but it leaves out what shutdown means for connectivity and recovery.

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?

The schema description coverage is 100%, so the schema documents port, confirm, and seconds. The description only restates 'seconds' and the confirm requirement, so it adds no syntax or format detail beyond the structured data; this is the expected baseline of 3.

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 gives a specific verb and resource ('Shut down the connected node') plus the timing scope, so an agent knows exactly what the tool does. It never names a sibling such as factory_reset to distinguish shutdown from other disruptive node operations, which keeps it at a 4 rather than 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states a precondition ('Requires confirm=True, or the user's answer when the client can ask'), which is real usage guidance about the confirmation handshake. However, it never says when to prefer this tool over alternatives, or when not to use it, so the guidance is implied rather than explicit.

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