inventory__list_workspaces
List Red Hat Inventory workspaces to retrieve available groups, their IDs, names, and host counts for use in subsequent calls.
Instructions
List Inventory workspaces (console UI name for Inventory groups).
Call this tool whenever the user asks to list, show, or get workspaces. Do not invent workspace names such as Ungrouped Hosts without calling this API. Each result includes id, name, ungrouped, and host_count. Prefer workspace IDs in later calls; names can be duplicated.
Required permission: inventory:groups:read (Workspaces viewer).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Filter workspaces by name (partial match). | |
| page | No | Page number to return. | |
| order_by | No | Field to sort by ('name', 'host_count', 'updated'). | |
| per_page | No | Number of workspaces to return per page. **ALWAYS use the default value of 10 for the first call.** Only increase this value if the user explicitly asks to see more workspaces at once. | |
| order_how | No | Sort direction ('ASC' or 'DESC'). | ASC |
| group_type | No | Workspace type to return: 'all' (default; includes Ungrouped Hosts and user workspaces), 'standard' (user-created only), or 'ungrouped-hosts'. | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |