Skip to main content
Glama

Reboot a device

pi_device_reboot
Destructive

Reboot a remote Raspberry Pi or SSH device via passwordless sudo, such as after configuration changes or when it is unresponsive. Returns immediately; open sessions drop until boot.

Instructions

Reboot the remote Raspberry Pi or SSH device with sudo reboot (needs passwordless sudo). Returns at once without confirming; open sessions drop until the device boots again.

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_id": "<device_id>"
    },
    "name": "pi_device_reboot"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYesIP address, hostname, MAC address, or device identifier of the target Raspberry Pi / SSH device.

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?

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description still adds real value beyond them: the passwordless-sudo prerequisite, the fact that the call returns immediately without confirming, and that open sessions drop until the device boots. It stops short of describing failure behavior or whether the device is verified back online.

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?

Two tight sentences, front-loaded with the action, followed by the precondition and the immediate-return caveat. No filler and nothing repeated from the structured fields.

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 single-parameter, non-idempotent device action with no output schema, the description supplies everything an agent needs: the mechanism, the sudo prerequisite, the asynchronous return, and the session-drop consequence. Annotations cover the destructive classification.

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?

With a single parameter at 100% schema description coverage, the schema already enumerates the accepted identifier forms (IP, hostname, MAC, device ID). The description adds no additional meaning about device_id, so the baseline of 3 applies.

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 concrete verb ('Reboot') on a concrete resource ('remote Raspberry Pi or SSH device') and names the underlying mechanism ('sudo reboot'). An agent can immediately distinguish this from siblings like pi_command_run, which executes arbitrary commands rather than a dedicated reboot action.

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?

Usage is implied by the operational requirement 'needs passwordless sudo', which signals a precondition for calling it. However, there is no explicit guidance on when to prefer this over running 'sudo reboot' via pi_command_run, and no statement of when not to use it (e.g. during active work that would be lost).

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