Skip to main content
Glama
AIops-tools

io.github.AIops-tools/ceph-aiops

pool_delete

Destructive

Delete a Ceph storage pool and all its data irreversibly; use dry_run=True to preview first. Protected mgr-owned pools are refused to keep the management API reachable.

Instructions

[WRITE][risk=high] Delete a pool — destroys all of its data. Irreversible.

Pass dry_run=True to preview. The classic footgun: there is no undo once the data is gone.

Refuses .mgr / .rgw.root and any mgr-owned pool: ceph-mgr serves the Dashboard REST API this tool speaks, so deleting its pool severs the transport for every later call. Enforced under dry_run too.

Args: pool_name: Pool name (from pool_ls). dry_run: If True, preview without deleting. target: Ceph target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
dry_runNo
pool_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.5
  2. Removedv0.3.0
  3. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds substantial context beyond them: the deletion is irreversible, the refusal set (.mgr, .rgw.root, mgr-owned pools) and why — deleting the mgr pool severs the REST transport the tool itself uses — and that these guards hold even under dry_run. That is exactly the kind of behavioral disclosure annotations cannot carry.

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 the write/risk tag and the core consequence, then the preview path, then the refusals, then the Args block — a sound ordering. Minor redundancy: 'Irreversible' and 'no undo once the data is gone' restate the same fact, and the refusals are already stated in the header text.

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 high-risk mutation with no output schema and three undocumented-by-schema parameters, the description supplies the consequences, the preview workflow, the refusal conditions, and the target semantics. An agent has everything needed to call this safely.

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 description coverage is 0%, so the description must carry the load and it does: pool_name is documented with its provenance (from pool_ls), dry_run with its effect (preview without deleting), and target as the Ceph target name from config that can be omitted for the default. All three parameters are meaningfully explained beyond their bare names.

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?

Opens with an explicit verb and resource ('Delete a pool') plus a scope statement that distinguishes it from siblings like pool_create or osd_purge. The [WRITE][risk=high] tag and 'destroys all of its data' immediately identify it as the destructive pool-level operation.

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?

Tells the agent to preview with dry_run=True and points at pool_ls as the source of the pool_name, which is concrete usage context. It also implies undefined undo paths ('there is no undo'), but never names undo_list/undo_apply as the alternatives, so the routing guidance stops short of explicit when-not/alternatives.

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