Skip to main content
Glama

Power action (agent-level)

mesh_power
Destructive

Wake, sleep, reset, or power off MeshCentral-managed devices, including waking offline machines through a LAN peer; use graceful reboot for reset/off. Requires MESH_MCP_ALLOW_POWER=1.

Instructions

Wake, sleep, hard reset or power off through MeshCentral's own power function (wake works on offline devices via a peer on the same LAN; reset/off are NOT graceful). Prefer mesh_graceful_reboot. Needs MESH_MCP_ALLOW_POWER=1.

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>",
      "action": "<action>"
    },
    "name": "mesh_power"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
deviceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description discloses that reset/off are NOT graceful (i.e., risk of data loss), that wake reaches offline devices through a LAN peer, and that the MESH_MCP_ALLOW_POWER=1 environment prerequisite must be set. These are exactly the operational facts an agent needs before invoking a destructive power tool.

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?

Three tight sentences, front-loaded with the action list and immediately followed by the caveat and the alternative. The environment-variable note is appended compactly; nothing is redundant, though the parenthetical is slightly dense.

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 two-parameter destructive mutation with no output schema and minimal annotations, the definition covers action semantics, destructive risk, prerequisites, and the preferred alternative. The remaining gap is how to identify the target device, which the schema does not supply either.

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 effectively explains the action enum (wake/sleep/reset/off, including wake's offline behavior and the non-graceful nature of reset/off), but says nothing about the 'device' parameter — no hint about identifier format, hostname, or node ID.

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 names four specific actions (wake, sleep, hard reset, power off) against a specific resource (device power via MeshCentral), and explicitly differentiates itself from mesh_graceful_reboot. An agent can tell exactly what this tool does and how it differs from the graceful sibling 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?

It gives a clear routing rule ('Prefer mesh_graceful_reboot') plus a meaningful use case for wake on offline devices via a LAN peer. It stops short of saying when sleep or off should be chosen over other device operations, but the primary alternative is named explicitly.

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