Skip to main content
Glama

compare_hosts

Read-onlyIdempotent

Compare two or more inventory hosts side by side to see capacity, headroom above floors, tags, and active stacks, so you can choose between known machines.

Instructions

Side-by-side comparison of two or more inventory hosts: capacity, headroom above floors, tags, and active stacks. Use when choosing between known machines; for fleet-wide spare capacity use fleet_headroom; for a single deep dive use explain_host. Read-only.

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": {
      "serverIds": "<serverIds>"
    },
    "name": "compare_hosts"
  }
}

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).
serverIdsYesTwo or more inventory server ids to compare (from list_servers / servers.json).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.6
    • 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)."
    • changedInput schema / properties / serverIds / description
      Previous value: -"Two or more inventory server ids"New value: +"Two or more inventory server ids to compare (from list_servers / servers.json)."
  2. First observedv0.2.5

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, making the trailing 'Read-only.' largely redundant. The description does add useful context about what the comparison surfaces (capacity, headroom above floors, tags, stacks), but says nothing about result size, pagination, or behavior when an id is unknown. With rich annotations the bar is lower, so this is adequate but not additive.

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?

One sentence, front-loaded with the operation and its scope, followed by routing guidance and safety. Every clause carries information; nothing is padding apart from the arguably redundant 'Read-only.'

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?

No output schema exists, and the description partly compensates by listing the compared facets (capacity, headroom, tags, stacks), giving the agent a rough sense of the return shape. For a read-only, two-parameter tool with full schema coverage and complete annotations, little else is required; only edge-case behavior for invalid ids 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?

The phrase 'two or more inventory hosts' and 'known machines' corroborates the minItems=2 constraint on serverIds, which is useful confirmation. But schema coverage is 100% and the inventory-path override parameter is left entirely to the schema, so the description adds only marginal meaning. 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?

Names a specific operation ('Side-by-side comparison') on a specific resource ('two or more inventory hosts') and enumerates what is compared: capacity, headroom above floors, tags, active stacks. An agent can distinguish it from list_servers or fleet_status without inspecting any 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?

States the selecting condition ('Use when choosing between known machines') and explicitly routes two alternatives: fleet_headroom for fleet-wide spare capacity and explain_host for a single deep dive. Both the when and the when-not are present.

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