Skip to main content
Glama

fleet_maintenance

Read-onlyIdempotent

Reports pending host maintenance—reboot-required packages, kernel mismatches, failed systemd units, and needrestart hints—so you can plan updates without rebooting or restarting hosts.

Instructions

Report pending host maintenance: reboot-required packages, kernel running vs newest installed, failed systemd units, and optional needrestart service hints. Read-only — never reboots or restarts. Use when the user asks what maintenance is pending; do not conflate this with capacity/pressure (use fleet_status / fleet_headroom for that).

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

Input Schema

NameRequiredDescriptionDefault
serverIdNoOptional inventory server id (from list_servers / servers.json) to limit the report to one host. Omit to scan the whole fleet.
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).

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: -"Optional inventory server id to limit the report to one host"New value: +"Optional inventory server id (from list_servers / servers.json) to limit the report to one host. Omit to scan the whole fleet."
  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, idempotentHint=true, and destructiveHint=false, so the safety profile is largely redundant information. The description adds operational context beyond that by stressing "never reboots or restarts," which clarifies that no remediation occurs, and by enumerating the categories of findings. It does not cover failure behavior for unreachable hosts or any output shape, so it earns credit but not a top score.

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, each earning its place: what it reports, its safety posture, and its routing versus siblings. The most important content (the report contents) is front-loaded, with no filler or restatement of the 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 no output schema, the description does the work of telling the agent what a result contains by listing the four finding categories, which is sufficient for a two-optional-parameter read tool. The remaining gap is that it never addresses what happens when hosts are unreachable on the network, which matters given openWorldHint=true.

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 serverId and inventory are fully documented in the schema, including the FLEETLOOM_INVENTORY fallback. The description adds nothing about parameter behavior or effects (e.g., that omitting serverId scans the entire fleet); that scoping is already in the schema. Baseline 3 is appropriate.

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 opens with a specific verb and resource ("Report pending host maintenance") and then enumerates exactly what is checked: reboot-required packages, kernel running vs newest installed, failed systemd units, and needrestart hints. It also explicitly names the siblings it should not be confused with, so an agent can distinguish it without inspecting other schemas.

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?

It gives an explicit when-to-use trigger ("when the user asks what maintenance is pending") and an explicit when-not with named alternatives ("do not conflate this with capacity/pressure — use fleet_status / fleet_headroom"). Both sides of the routing decision are stated.

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