List Hosts
list_hostsRetrieve and filter Mackerel hosts by service, role, status, name, or custom identifier. Supports pagination and summary output to inspect host status and details.
Instructions
Retrieve hosts from Mackerel.
š USE THIS TOOL WHEN USERS:
Get a list of hosts
Filter hosts by various criteria (service, role, name, etc.)
Check host status and information
Get hosts for a specific role
list_hosts(service="web",role=["app"])Get hosts by status with pagination
list_hosts(status=["working","standby"], limit=10, offset=0)Get hosts in summary format (reduced response size)
list_hosts(summary=true)Get next page of hosts
list_hosts(limit=20, offset=20)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Host name | |
| role | No | Role names in the service, multiple assignments possible (result will be a unit of the hosts that belong to each role) if service has not been assigned it will be ignored. | |
| limit | No | Maximum number of hosts to return (default: 20, max: 100) | |
| offset | No | Number of hosts to skip (default: 0) | |
| status | No | Filters the host status. multiple specifications are possible. defaults are `working` and `standby`. | |
| service | No | Service name | |
| customIdentifier | No | An identifier for the host that is user-specific and unique to the organization (registered at Register Host Information or Update Host Information API) |