Skip to main content
Glama

get_poe_status

Read-onlyIdempotent

Retrieve Power over Ethernet (PoE/PoE+) status for switch ports and chassis budget, including power usage, allocation, PD type, and faults, to diagnose why devices are not receiving power.

Instructions

Get Power over Ethernet (PoE/PoE+) status: chassis power budget and, per port, admin state, operational state, power consumed and allocated (watts), PD type (802.3af/at/bt/legacy), power class, priority, and faults.

Use this to answer: which ports power APs/cameras/phones, how close the switch is to its PoE budget, which ports have PoE faults, or why a device isn't getting power.

Args: port_filter: Substring or glob on port name, e.g. "1/1/1", "1/1/*". only_powered: Only ports currently delivering power. only_faults: Only ports reporting a PoE fault/error. include_cli_details: Add the fields RESTCONF lacks (chassis budget, allocated power, PD type, priority, faults) from show inline power over SSH. Set False for a faster RESTCONF-only answer.

Returns {source, summary:{powered_ports, total_power_used_w, total_w, free_w, allocated_pct_of_budget, ports_with_faults}, ports:[...]}. Summary is always computed over ALL PoE ports, regardless of filters.

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

Input Schema

NameRequiredDescriptionDefault
only_faultsNo
port_filterNo
only_poweredNo
include_cli_detailsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds real behavior on top: include_cli_details triggers an SSH call for fields RESTCONF lacks, with the explicit tradeoff that False yields a faster answer. It also discloses a non-obvious semantic that the summary is computed over ALL PoE ports regardless of filters, which prevents misreading filtered results.

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 purpose, then use cases, then args, then return shape; no filler sentences and every clause carries information. The Args block restates parameter names already present in the schema, but since schema coverage is zero that repetition earns its place; the structure is slightly list-heavy but not bloated.

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?

An output schema exists, yet the description still sketches the return shape, and the SSH-vs-RESTCONF dependency and filter-independent summary make it callable without guesswork. What is missing is minor: no indication of how long the SSH path takes, whether SSH credentials must already be configured, or how a large port list is paginated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and does so: port_filter is explained as substring or glob with concrete examples ('1/1/1', '1/1/*'), only_powered and only_faults are defined by state, and include_cli_details lists which fields it adds and what happens when it is False. All four parameters gain meaning that the bare schema does not provide.

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?

Opens with a specific verb and resource ('Get Power over Ethernet (PoE/PoE+) status') and enumerates exactly what is returned: chassis budget, per-port admin/oper state, watts consumed and allocated, PD type, class, priority and faults. An agent can immediately tell this apart from get_interfaces or get_system_info because the scope is explicitly PoE power delivery.

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 concrete question-shaped cues for when to reach for it ('which ports power APs/cameras/phones', 'how close the switch is to its PoE budget', 'why a device isn't getting power'), which is stronger than generic context. It does not name a sibling such as run_show_command as the alternative for a raw `show inline power` dump, nor state when not to use it, so it stops short of a 5.

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