place_workloads
Sequentially plans placement for multiple workloads as a read-only what-if, reserving capacity, ports, and anti-affinity so later workloads do not stack on the same host.
Instructions
Sequentially place multiple workloads as a what-if plan. Each step virtualizes capacity, ports, and anti-affinity so later workloads do not unrealistically stack on the same host. Prefer place_service for a single workload. Read-only — does not deploy.
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": {
"workloads": "<workloads>"
},
"name": "place_workloads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inventory | No | Optional path to servers.json (absolute or ~/…). Overrides FLEETLOOM_INVENTORY for this call. When omitted, uses FLEETLOOM_INVENTORY or the Go CLI default (~/.config/fleetloom/servers.json). | |
| workloads | Yes | Ordered list of WorkloadRequest objects (name/preset/compose fields as in place_service). Order matters: earlier placements reserve capacity for later ones. |