Skip to main content
Glama

hmc_lpars

Read-only

List or find logical partitions (LPARs) on IBM HMC, returning full details, current state, or filtered results by system or partition state.

Instructions

List logical partitions (LPARs) or get/find one.

Resolution priority (first match wins):

  1. lpar_name_or_uuid + state_only=True → str | None — current LPAR state only (uses the cheap quick-property endpoint instead of a full fetch).

  2. lpar_name_or_uuid → dict | None — full LPAR details. Accepts either a PartitionName or a UUID. When both lpar_name_or_uuid and name are supplied, lpar_name_or_uuid takes priority and name is ignored.

  3. name → dict | None — find by PartitionName (exact match).

  4. system_name_or_uuid → list[dict] — all LPARs on that system. Accepts either a SystemName or a UUID.

  5. state → list[dict] — all LPARs whose PartitionState matches the given value (server-side /search/ endpoint).

  6. (no arguments) → list[dict] — all LPARs known to the HMC.

Raises ValueError if state_only=True is supplied without lpar_name_or_uuid. The state filter is ignored when lpar_name_or_uuid or system_name_or_uuid is supplied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
stateNo
state_onlyNo
lpar_name_or_uuidNo
system_name_or_uuidNo
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses return types per mode (str|None, dict|None, list[dict]), explains endpoint selection (cheap quick-property vs full fetch), and states that the state filter is ignored under certain conditions. It also documents the ValueError raised when state_only is used without lpar_name_or_uuid, providing rich behavioral context.

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?

The description starts with a one-line summary and then uses a well-organized numbered list for the resolution priority. Each rule is necessary, direct, and free of redundant or filler content, making it easy to scan and apply.

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?

Despite having no output schema, the description covers all parameters, all six resolution cases, return types, error conditions, and endpoint optimization guidance. It is comprehensive for a list/get tool and leaves no significant ambiguity about how to invoke it for various needs.

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?

With schema description coverage at 0%, the description fully compensates by explaining each parameter's role: lpar_name_or_uuid accepts PartitionName or UUID, name requires exact match, system_name_or_uuid accepts SystemName or UUID, state matches PartitionState, and state_only is a boolean that requires lpar_name_or_uuid. It also clarifies precedence and ignored parameters, giving complete semantic meaning.

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 opens with 'List logical partitions (LPARs) or get/find one', which clearly identifies the verb and resource. The numbered resolution priority distinguishes it from sibling tools like hmc_lpar_summary (which provides summaries) and hmc_get_lpar_description (which gets only the description), making the tool's scope unmistakable.

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?

The description provides a detailed resolution priority with six cases, explaining which arguments to use for different outcomes, and explicitly notes that state_only uses a cheaper endpoint and that the state filter is ignored when lpar_name_or_uuid or system_name_or_uuid is supplied. However, it does not explicitly name alternative tools for when not to use this one, so it falls 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.

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/randomparity/hmc-mcp'

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