Skip to main content
Glama
AIops-tools

io.github.AIops-tools/ceph-aiops

osd_mark_out

Destructive

Mark a Ceph OSD out to drain its data, risking recovery storms and reduced redundancy. Preview with dry_run=True.

Instructions

[WRITE][risk=high] Mark an OSD 'out' — drains its data (recovery storm / min_size risk).

Destructive to redundancy — pass dry_run=True to preview.

Args: osd_id: Numeric OSD id (from osd_tree). dry_run: If True, preview without marking out. target: Ceph target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
osd_idYes
targetNo
dry_runNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is set; the description goes further by naming the concrete risks (recovery storm, min_size breach) and the dry_run escape hatch. It does not state whether the action is reversible or whether it requires cluster-health preconditions.

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 tag and consequence before the args block; every line adds information. Minor redundancy in restating param names, though that restatement is justified given zero schema coverage.

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, the description covers the operation, its risk, the preview path, and every parameter. An agent has everything needed to decide and invoke correctly.

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 carries the full burden — and it does, documenting all three params: osd_id as a numeric id sourced from osd_tree, dry_run as a preview switch, and target as a Ceph config name that can be omitted. This fully compensates for the empty 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?

States a specific verb+resource ('Mark an OSD out') and immediately names the consequence ('drains its data'), which separates it cleanly from siblings like osd_mark_in, osd_reweight, and osd_purge. The [WRITE][risk=high] tag further classifies it upfront.

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 clear context for when to invoke (draining an OSD) and points to osd_tree as the source of osd_id, plus recommends dry_run=True to preview. It stops short of naming the inverse tool (osd_mark_in) or the operational precondition (cluster must tolerate the reduced redundancy).

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