place_service
Recommend where to deploy a single workload by scoring live host facts and returning a ranked host with reasons; read-only scoring, it does not deploy or move containers.
Instructions
Recommend where to deploy a single workload on the fleet. Infer structured infra requirements (or pass composePath/preset). Fleetloom scores live host facts and returns a ranked recommendation with optional scoreBreakdown; do not invent the host yourself. Use place_workloads instead when placing multiple workloads in one plan; follow with advise_deploy for a host-grounded deploy brief; use suggest_rebalance only when relieving an already-stressed host. If no host fits, the JSON says so (needsNewServer / empty recommendation) — do not invent a host. Optional teach=true adds teachNotes for request/placement signals. Read-only scoring — does not deploy or move containers.
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": "place_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Workload / service name, e.g. nextcloud or batch-worker | |
| tags | No | Placement affinity tags inferred from the workload, e.g. storage-heavy, memory-heavy, public-apps | |
| notes | No | Short rationale for the inferred requirements | |
| teach | No | If true, include teachNotes[] (ontology slugs) for stateful/anti-affinity/trust/needs-new-server signals. | |
| preset | No | Built-in preset: postgres, redis, nextcloud, jellyfin, web-api | |
| needsGpu | No | Require a GPU-capable host | |
| stateful | No | True for databases / persistent data apps that prefer RAM headroom | |
| 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). | |
| minVramMb | No | Minimum free GPU VRAM (MiB) | |
| composePath | No | Tool-only: path to docker-compose.yml / compose.yaml to infer requirements (not a WorkloadRequest field) | |
| minCpuCores | No | Minimum host CPU cores | |
| requiredTags | No | Hard-required host tags | |
| forbiddenTags | No | Hard-forbidden host tags | |
| minDiskFreeGb | No | Minimum free disk required on the target host (GiB) | |
| requiredPorts | No | Host/published ports that must be free | |
| maxLoadPerCore | No | Maximum acceptable 1-minute load average per CPU core | |
| minMemoryFreeMb | No | Minimum available memory required on the target host (MiB) | |
| antiAffinityServices | No | Reject hosts already running these services/containers |