Skip to main content
Glama

advise_deploy

Read-onlyIdempotent

Get a read-only, host-grounded deployment brief for a workload: proxy and network conventions, stack path, memory guardrail, and pre-flight checklist. Use it to write Compose files without inventing host topology.

Instructions

Host-grounded deployment brief for a workload: reverse-proxy/network conventions, stack path, memory guardrail, and pre-flight checklist. Read-only — does not deploy. Use after place_service or with serverId to pin a host. Write Compose/proxy files from this brief; never invent host topology. Optional teach=true adds teachNotes for proxy/storage/stateful signals.

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": "advise_deploy"
  }
}

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 signals in this brief.
presetNoBuilt-in preset: postgres, redis, nextcloud, jellyfin, web-api
needsGpuNoRequire a GPU-capable host
serverIdNoPin advice to this inventory server id (skips re-running placement). Use the recommendedServerId from place_service when available.
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. 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 / serverId / description
      Previous value: -"Pin advice to this inventory server id (skips placement)"New value: +"Pin advice to this inventory server id (skips re-running placement). Use the recommendedServerId from place_service when available."
  2. First observedv0.2.5

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, and the description is consistent with them. Beyond that it discloses a behavior not in the annotations: teach=true augments the response with teachNotes for proxy/storage/stateful signals, and it states the brief is advisory output, not an action. No pagination/error/permission context is given, but with the safety profile already annotated that is a minor gap.

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?

Three sentences, front-loaded with the purpose, then the read-only constraint and sequencing rule, then the optional flag. No filler or repetition of the tool name.

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

Completeness4/5

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

With 19 parameters and no output schema, the description usefully summarizes the return payload (conventions, stack path, memory guardrail, checklist) and flags the teachNotes addition, which compensates for the missing output schema. The main remaining gap is that it does not explain behavior when the workload cannot be placed on a host.

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% across 19 parameters, so the schema already documents name, tags, serverId, preset, and the constraint fields in detail. The description adds only marginal framing (serverId pins a host; teach toggles teachNotes), largely restating what the schema says. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

"Host-grounded deployment brief for a workload" gives a specific verb and resource, then enumerates the brief's contents (reverse-proxy/network conventions, stack path, memory guardrail, pre-flight checklist). It explicitly bounds the tool with "Read-only — does not deploy," which separates it from an actual placement/deploy action and, together with the place_service reference, distinguishes it from siblings.

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?

It states a concrete sequencing rule: "Use after place_service or with serverId to pin a host," and adds a downstream rule ("Write Compose/proxy files from this brief; never invent host topology"). It does not cover when NOT to use it or contrast with compare_hosts/explain_host, so it stops short of full when/when-not guidance.

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