hmc_lpar_summary
Summarize an LPAR's state, RMC, memory, CPU, OS, and adapter count with a single HMC call.
Instructions
One-call LPAR summary: state, RMC, memory/CPU, OS, adapter count, description.
Composes data from three HMC endpoints in a single call:
GET /rest/api/uom/LogicalPartition/{uuid}— main partition data (state, memory, CPU, OS version, partition type / ID).GET /rest/api/uom/LogicalPartition/{uuid}/ClientNetworkAdapter— client network adapters attached to the partition (count returned).
Accepts either a PartitionName (exact match) or a UUID.
Returns a flat summary dict with the most useful fields:
state/rmc_state— current PartitionState and RMC status.current_memory_mb/desired_memory_mb— active and profile memory.current_proc_units/desired_proc_units— active and profile CPU.desired_vcpus/dedicated_procs— virtual processors or dedicated CPUs.os_version/os_type— OS details reported by the HMC.client_network_adapter_count— number of client network adapters.description— partition description if set.mapped_storage— alwaysnull; resolving vSCSI-mapped storage requires a VIOS UUID hop (vSCSI adapter →vios_partition_id→list_vios+ PartitionID match →get_vios_storage_detail) and is out of scope for this best-effort summary. Usehmc_viosfor per-VIOS storage mappings.
Raises ValueError when the partition cannot be found.
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": {
"lpar_name_or_uuid": "<lpar_name_or_uuid>"
},
"name": "hmc_lpar_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lpar_name_or_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||