Skip to main content
Glama

get_power_state

Read-onlyIdempotent

Retrieve the current power state of a hardware place managed by the Labgrid MCP server. Specify an optional resource name when multiple power resources exist.

Instructions

Current power state for a place this server has acquired.

        Reads via ``NetworkPowerDriver.get()`` (target.py). Category.POWER
        gated even though it only reads: it talks to a real hardware path,
        unlike the always-on Phase 1/2 read tools. ``resource_name``
        (§11.14) picks one of several same-class power resources on the
        place -- omit it for a single-power-resource place (unchanged
        behavior); an unnamed pick on a multi-resource place is a tool
        error naming the available resources. Echoed back in the result
        only when given (additive).
        

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
placeYes
resource_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations already declare read-only/idempotent, but the description adds valuable behavioral details: it is gated because it talks to a real hardware path, resource_name selection semantics, and the exact error condition for multi-resource places. Also explains the additive echo behavior in the result. No contradiction with annotations.

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?

The description is moderately long but every sentence adds value, covering purpose, implementation, gating, resource_name edge cases, and result behavior. The internal reference (§11.14) is a minor obstacle but does not hurt overall clarity.

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?

Given the presence of an output schema and annotations for safety, the description covers the tool's purpose, usage context, resource_name edge cases, and result echo behavior. It is complete for a read tool with these structured fields.

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

Parameters4/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 compensate. It fully explains resource_name (omit for single-resource, error naming available resources on multi-resource) and implies place must be an acquired place. The place parameter is not as explicitly described, but it is straightforward.

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 clearly states the tool returns the current power state for an acquired place, with a specific verb and resource. It distinguishes this read tool from siblings by noting it is gated because it accesses real hardware, unlike always-on Phase 1/2 read tools.

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?

Provides context on when to use this tool (reads via NetworkPowerDriver) and clarifies that it is gated unlike other read tools. It also gives specific guidance on resource_name: omit for single-power-resource places, and warns that an unnamed pick on multi-resource places is an error. It does not explicitly name alternative tools but the context is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/onurcelep/labgrid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server