Skip to main content
Glama

Get UPS Status

ups_status
Read-onlyIdempotent

Read live UPS telemetry from apcupsd—operational status, battery charge, estimated runtime, and power load/voltage—and report unavailable data as 'no live UPS data' instead of an error.

Instructions

Read-only. Live UPS telemetry from apcupsd: operational status (passed through verbatim from apcaccess — e.g. ONLINE, ONBATT, LOWBATT, COMMLOST), battery charge and estimated runtime, and power load/voltage. When apcaccess returns nothing (apcupsd stopped, no UPS attached, or a NUT-managed UPS — the Unraid API reads apcupsd only) this tool reports 'no live UPS data' instead of an error; when apcupsd reports a device without identity the API returns placeholder values, reported the same way rather than as a healthy UPS, and battery/power values may be upstream defaults when apcaccess data is incomplete. Reachable by any authenticated key (no special permission).

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

Input Schema

NameRequiredDescriptionDefault
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantive behavior beyond them: the no-data path returns 'no live UPS data' instead of an error, placeholder values are surfaced rather than presented as a healthy UPS, and battery/power values may be upstream defaults. The authentication requirement is also disclosed.

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?

Front-loaded with the resource and scope, and the degraded-state caveats earn their place. However, the leading 'Read-only.' merely repeats readOnlyHint=true, and the nested parentheticals (especially the apcaccess/NUT aside) make it heavier than needed for a single-parameter read.

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 one-optional-parameter, read-only status tool with a complete schema and full annotations, nothing an agent needs is missing — the failure modes, placeholder semantics, and permission model are all covered.

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 single parameter, response_format, has full schema coverage including an enum, default, and explanation of what 'detailed' returns. The description adds no parameter guidance of its own, so the schema carries this dimension entirely — baseline 3 is appropriate.

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 action and resource ('Live UPS telemetry from apcupsd') and enumerates exactly what is returned: operational status with verbatim state tokens, battery charge/runtime, and load/voltage. No sibling tool in the provided list overlaps with UPS telemetry, so the resource alone disambiguates it.

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?

Makes the applicable context clear: it reads apcupsd only, so NUT-managed UPS setups will not yield data, and it is reachable by any authenticated key with no special permission. It stops short of explicitly naming an alternative tool or saying when not to call it, but the environment constraint effectively bounds usage.

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