Skip to main content
Glama
AIops-tools

io.github.AIops-tools/ceph-aiops

pg_summary

Read-only

Check Ceph PG health by summarizing states: count PGs by state and list those not active+clean.

Instructions

[READ] PG state histogram + every PG that is not active+clean.

Call this to answer "are my PGs healthy?" — it counts PGs by state and lists the ones needing attention. unhealthyCount is the true total; the unhealthy list is capped at limit and sets truncated: true when there were more. Re-run with a higher limit rather than treating a truncated result as complete.

Args: target: Ceph target name from config; omit for the default. limit: Maximum unhealthy PG rows to return. Default 200.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
targetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.5
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 200,
      +  "title": "Limit",
      +  "type": "integer"
      +}
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint annotation to disclose the truncation contract: unhealthyCount is the true total while the unhealthy list is capped at limit and flagged truncated:true, with explicit advice to re-run at a higher limit. This is exactly the non-obvious behavior an agent needs to avoid misreading a partial result as complete.

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-loads the [READ] tag and the one-line purpose, then adds guidance in descending order of importance. The truncation warning and Args block are justified, though the description runs longer than strictly required for a two-parameter read tool.

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 simple read-only tool with no output schema and two params, the description covers what is returned, the truncation edge case, and both arguments. Nothing an agent needs to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 0%, so the description must carry the params, and it does: target (Ceph target name from config, omit for default) and limit (max unhealthy rows, default 200). Both are explained beyond their bare names, though target's expected format is only loosely characterized.

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+resource with precise scope: a PG state histogram plus every PG not active+clean. It is clear enough that an agent understands exactly what comes back, but it never differentiates itself from the closest sibling (pg_dump_stuck), which an agent could plausibly reach for on the same question.

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?

Gives concrete usage context for when to invoke ('are my PGs healthy?') and what it answers. It stops short of naming exclusions or pointing to pg_dump_stuck for the stuck-PG case, so it is clear context without alternatives.

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