Skip to main content
Glama

suggest_rebalance

Read-onlyIdempotent

Suggests one container move to relieve pressure on a stressed host, returning source, destination, and rationale; advisory only, it does not execute moves.

Instructions

Suggest one container move that would best relieve pressure on a stressed host (source, destination, rationale). Advisory only — never executes docker moves or Compose changes. Use after fleet_status shows pressure; confirm with place_service/advise_deploy before acting manually.

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

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).
includeStatefulNoIf true, allow suggestions that move likely-stateful services (databases, persistent data). Default false — prefer ephemeral/stateless moves.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.6
    • changedInput schema / properties / includeStateful / description
      Previous value: -"Allow suggesting moves of likely-stateful services"New value: +"If true, allow suggestions that move likely-stateful services (databases, persistent data). Default false — prefer ephemeral/stateless moves."
    • addedInput schema / properties / inventory / description
      Added 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.3/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, so the safety profile is covered. The description still adds real context beyond them: it returns exactly one suggestion, includes a rationale, and 'never executes docker moves or Compose changes' — confirming rather than contradicting the annotations.

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?

Two tight sentences: the core action and return shape come first, then the advisory constraint and workflow routing. Every clause carries information and nothing is repeated from the schema or annotations.

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 a read-only advisory tool with no output schema, the description covers the return payload (source, destination, rationale), the safety boundary, and the surrounding workflow. Nothing an agent needs in order to invoke it correctly is missing.

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% and both parameters (inventory path override, includeStateful default) are fully documented in the schema itself. The description adds no meaning about either parameter, so the baseline 3 applies.

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?

The description gives a specific verb and resource ('Suggest one container move') plus the exact output shape (source, destination, rationale) and an explicit scope limit ('Advisory only'). An agent can distinguish this from place_service and advise_deploy 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 Guidelines4/5

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

It states the triggering condition ('Use after fleet_status shows pressure') and the follow-up path ('confirm with place_service/advise_deploy before acting manually'), which routes the agent correctly among siblings. It stops short of an explicit when-not-to-use case, so it is strong but not complete.

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