List servers
list_serversEvery server InfraNest tracks in the organization, a page at a time, with its provider, status, addresses and tags. Filter with search, status, running, datacenter, tag, credential, provider or tracking=untracked, and sort with sort and dir; self-managed machines are counted in meta.counts.self_managed and listed only with provider=self_managed. Here, with no provider, both kinds are listed as one: cloud servers first, then self-managed servers (added with the agent or by hand). Pass provider to list one kind.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_servers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Only things with this tag id. | |
| page | No | Page number, from 1. | |
| search | No | Matches name, IP address, datacenter, server type, location or tag. | |
| status | No | Only servers in this state. | |
| per_page | No | Rows per page, up to 200 (default 25). | |
| provider | No | Only servers at this provider, e.g. hetzner, or self_managed for the servers added with the agent or by hand. | |
| organization_id | No | The organization to read. Leave it out when the token reaches only one. |