Skip to main content
Glama
AIops-tools

io.github.AIops-tools/ceph-aiops

set_pool_quota

Destructive

Set or clear a Ceph pool's byte and object quotas to control capacity, with changes reversible to the prior quota.

Instructions

[WRITE][risk=medium] Set a pool's byte/object quota. Reversible → prior quota.

Args: pool_name: Pool name (from pool_ls). max_bytes: New byte quota (0 clears it); omit to leave unchanged. max_objects: New object quota (0 clears it); omit to leave unchanged. target: Ceph target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
max_bytesNo
pool_nameYes
max_objectsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare write/non-idempotent/destructive, and the description still adds real value by flagging risk=medium and stating the change is reversible back to the prior quota. It stops short of saying whether both quotas apply together or what errors occur for a nonexistent pool. The 'reversible' claim sits in mild tension with destructiveHint=true but does not flatly contradict it, since a too-small quota can effectively block writes.

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?

Front-loaded with the operation tags, then a one-line purpose and a tight Args block. Every line adds information; nothing is redundant padding.

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?

For a 4-parameter mutation with no output schema, the description covers intent, parameter semantics, and reversibility. Minor omissions remain: it does not say whether a confirmation or the resulting quota is returned, nor behavior when pool_name is invalid.

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%, so the description carries the full burden and does: it gives pool_name's provenance (pool_ls), the 0-clears semantics for both max_bytes and max_objects, the omit-leaves-unchanged behavior, and the default meaning of target. This compensates completely for the undocumented schema.

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?

"Set a pool's byte/object quota" is a specific verb+resource, and the byte/object qualifier cleanly separates it from siblings like set_pool_size, set_pool_pg_num, and set_pool_autoscale. An agent can identify the right tool without opening 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It points to pool_ls as the source of pool_name, which is useful cross-tool guidance, and explains when to pass 0 versus omitting a quota. However, it never states when to reach for this tool versus set_pool_size or set_pool_autoscale, so selection guidance is only implied by the resource name.

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