Skip to main content
Glama

pool_health_rca

Read-only

Flag problematic ZFS pools based on state, error counters, and capacity. Reports worst-first with concrete actions.

Instructions

[READ] Flag ZFS pools by state, error counters, and capacity.

Pulls the /pool listing (with topology + scan) and flags pools that are DEGRADED/FAULTED/OFFLINE, pools with non-zero read/write/checksum/scan error counters, and pools over the 80%/90% capacity thresholds — worst-first, each finding citing the measured status/counts/percent and a concrete action.

Args: target: TrueNAS target name from config; omit to use the default.

Input Schema

NameRequiredDescriptionDefault
targetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.3/5.0
Behavior4/5

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

With readOnlyHint=true already covering safety, the description adds real behavioral context: it pulls /pool with topology + scan, orders output worst-first, and states each finding cites measured status/counts/percent plus a concrete action. It stops short of noting auth requirements, pagination, or behavior across multiple targets.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

Front-loaded with a '[READ] Flag ...' headline followed by a tight scope paragraph; the trailing Args block is slightly redundant boilerplate but still useful for the undocumented parameter. Overall every sentence carries information.

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 single-parameter, read-only tool with no output schema, the description supplies everything an agent needs: what is fetched, what triggers a finding, the ordering, the evidence included per finding, and the default value behavior of the sole parameter.

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

Parameters5/5

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

Schema coverage is 0% (the lone 'target' param has no schema description), so the description carries the burden and does so fully: it names the parameter, explains it is a TrueNAS target name from config, and states that omitting it uses the default.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Flag ZFS pools by state, error counters, and capacity' — and enumerates the exact conditions (DEGRADED/FAULTED/OFFLINE, non-zero error counters, 80%/90% thresholds). It implicitly distinguishes itself from raw-listing siblings like pool_list/pool_status by describing analysis-and-flagging rather than dumping, though it never names an alternative.

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?

Clear context is given: this is the tool to call when you want problematic pools surfaced and triaged, with the triggering conditions spelled out. However there is no explicit 'use pool_list instead when you want the raw listing' routing statement, so the agent must infer the boundary with siblings.

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