Skip to main content
Glama

Gracefully reboot a device

mesh_graceful_reboot
Destructive

Schedule a graceful OS reboot with a delay so logged-in users get a warning and apps can close; abort during the delay if needed.

Instructions

Schedule an OS-level graceful reboot (Windows: shutdown /r, Linux/macOS: shutdown -r) with a delay so logged-in users get a warning and apps can close. Needs MESH_MCP_ALLOW_POWER=1. Use mesh_cancel_reboot to abort during the delay.

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

Input Schema

NameRequiredDescriptionDefault
deviceYes
messageNoReboot requested via MeshCentral
delay_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, and the description adds real value beyond that: the underlying commands used, the user-warning delay semantics, the MESH_MCP_ALLOW_POWER=1 prerequisite, and the abort path. It still omits failure modes (what happens if the flag is unset, permission errors, whether the scheduled reboot survives a service restart), so it is good but not exhaustive for a destructive operation.

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?

Two tightly written sentences, front-loaded with the action and mechanism, then the prerequisite and escape hatch. No wasted wording, though the parenthetical command syntax is more implementation trivia than selection-relevant 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?

For a three-parameter destructive tool with no output schema, it covers action, safety implication, environment prerequisite, and cancellation path. It leaves open how a pending reboot is identified when cancelling and what a zero-second delay does, which are minor but real gaps.

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 0%, so the description must carry parameter meaning; it explains the purpose of the delay (users get a warning, apps can close) but says nothing about the 'message' parameter, the 0–3600s bounds, or which device identifier to supply. It compensates only partially for the documentation gap.

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?

States a specific verb and resource ('Schedule an OS-level graceful reboot') plus the concrete mechanism per platform, and explicitly names the sibling tool (mesh_cancel_reboot) that handles the abort case. An agent can distinguish this from a generic power action without opening any 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 a clear condition for use (when you want a delayed reboot so users are warned and apps close) and points to mesh_cancel_reboot during the delay window. It does not explicitly contrast with the sibling mesh_power for an immediate/hard power cycle, so the when-not guidance is incomplete.

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