Skip to main content
Glama

place_workloads

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
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).
workloadsYesOrdered list of WorkloadRequest objects (name/preset/compose fields as in place_service). Order matters: earlier placements reserve capacity for later ones.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields 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)."
    • changedInput schema / properties / workloads / description
      Previous value: -"Ordered list of WorkloadRequest objects"New value: +"Ordered list of WorkloadRequest objects (name/preset/compose fields as in place_service). Order matters: earlier placements reserve capacity for later ones."
  2. First observedv0.2.5

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, yet the description adds real value beyond them by explaining the simulation mechanics: capacity, ports, and anti-affinity are virtualized step-by-step so later workloads do not stack unrealistically. The order-dependence of results is a non-obvious trait that no annotation communicates. It does not describe the shape of the returned plan, which keeps it from 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.

Conciseness5/5

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

Four short sentences, front-loaded with what the tool does, followed by the mechanism, the routing rule, and the safety note. Nothing is wasted, and the most decision-relevant facts come first.

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

Completeness3/5

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

With no output schema, the description leaves the agent guessing what a 'what-if plan' actually returns (per-workload host assignments? rejection reasons? residual headroom?). The simulation behavior and sibling routing are well covered, but the return contract is a genuine gap for a tool whose entire purpose is producing a plan.

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

Parameters3/5

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

Schema description coverage is 100%, so every field including the nested workload objects is already documented, and the 'order matters' semantics are also stated in the workloads array description. The description adds almost no parameter-level meaning beyond that schema baseline, which is the expected 3.

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 ('place multiple workloads') plus the mode of operation ('as a what-if plan'), which is materially different from an actual deploy. It explicitly contrasts with the sibling place_service, so an agent can route between the two without inspecting 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 Guidelines4/5

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

Names the alternative and the condition that selects it: 'Prefer place_service for a single workload' gives a clean cardinality-based rule. It stops short of covering other adjacent situations (e.g., when compare_hosts or suggest_rebalance would be more appropriate), but the primary decision point is unambiguous.

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