Skip to main content
Glama

place_service

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
nameNoWorkload / service name, e.g. nextcloud or batch-worker
tagsNoPlacement affinity tags inferred from the workload, e.g. storage-heavy, memory-heavy, public-apps
notesNoShort rationale for the inferred requirements
teachNoIf true, include teachNotes[] (ontology slugs) for stateful/anti-affinity/trust/needs-new-server signals.
presetNoBuilt-in preset: postgres, redis, nextcloud, jellyfin, web-api
needsGpuNoRequire a GPU-capable host
statefulNoTrue for databases / persistent data apps that prefer RAM headroom
inventoryNoOptional 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).
minVramMbNoMinimum free GPU VRAM (MiB)
composePathNoTool-only: path to docker-compose.yml / compose.yaml to infer requirements (not a WorkloadRequest field)
minCpuCoresNoMinimum host CPU cores
requiredTagsNoHard-required host tags
forbiddenTagsNoHard-forbidden host tags
minDiskFreeGbNoMinimum free disk required on the target host (GiB)
requiredPortsNoHost/published ports that must be free
maxLoadPerCoreNoMaximum acceptable 1-minute load average per CPU core
minMemoryFreeMbNoMinimum available memory required on the target host (MiB)
antiAffinityServicesNoReject hosts already running these services/containers

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.6
    • changedInput schema / properties / inventory / description
      Previous value: -"Optional path to servers.json. Defaults to FLEETLOOM_INVENTORY or the Go CLI default (~/.config/fleetloom/servers.json)."New value: +"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)."
  2. First observedv0.2.5

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, but the description adds real behavioral context beyond them: it explains that live host facts are scored, that a scoreBreakdown may be returned, that teach=true adds teachNotes, and critically that a no-fit outcome surfaces as needsNewServer or an empty recommendation rather than an error. It does not describe scoring factors or tie-breaking, which keeps it off a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, then routing rules, then failure modes and flags. Sentences are dense but nearly all carry distinct information; the sibling-routing clause is slightly list-like but each alternative is paired with its deciding condition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter tool with no output schema, the description covers the missing pieces: it describes the return shape (ranked recommendation, optional scoreBreakdown, teachNotes), the no-fit outcome, and the read-only guarantee. An agent has enough to invoke it correctly and interpret the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema cannot: that infra requirements can be inferred (or supplied via composePath/preset), that host must not be passed or invented, and that teach is the switch for teachNotes. It doesn't clarify precedence among conflicting hard constraints (e.g. requiredTags vs forbiddenTags), which would be the extra step.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with scope: 'Recommend where to deploy a single workload on the fleet.' It explicitly contrasts the single-workload scope with place_workloads for multiple workloads, so an agent can discriminate between the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules: use place_workloads for multiple workloads in one plan, follow with advise_deploy for a host-grounded brief, and use suggest_rebalance only when relieving an already-stressed host. The 'only when' phrasing on suggest_rebalance is a genuine exclusion criterion, not just a pointer.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.