Skip to main content
Glama

set_bucket_quota

Destructive

Set or clear a MinIO bucket hard quota by specifying a byte limit; use 0 to remove the quota, with dry-run preview available.

Instructions

[WRITE][risk=medium] Set (>0) or clear (0) the bucket hard quota. Reversible.

Needs admin-capable credentials (admin API).

Args: bucket_name: Bucket name (from bucket_ls). size_bytes: New hard quota in bytes; 0 clears the quota. dry_run: If True, preview without changing the quota. target: MinIO target name from config; omit for the default.

Input Schema

NameRequiredDescriptionDefault
targetNo
dry_runNo
size_bytesYes
bucket_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false; the description adds the credential requirement (admin API) and the reversibility note plus a medium risk tag, which annotations alone do not convey. It does not explain the effect of lowering a quota on in-flight writes, so it stops short of full behavioral disclosure.

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?

Risk/type tags are front-loaded, the core operation is stated in one sentence, and the parameter block is scannable with no filler. Every line conveys information.

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 mutating tool with no output schema, the description covers prerequisites, reversibility, dry-run, and all four parameters. It omits the operational consequence of a reduced quota (write failures) and any error/response expectations, which is the only meaningful gap.

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: size_bytes explains that 0 clears the quota (beyond the schema's bare 'integer'), target explains the default-when-omitted behavior, dry_run explains preview semantics, and bucket_name points at bucket_ls as the source of valid values.

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 and resource ('Set (>0) or clear (0) the bucket hard quota'), and the parenthetical clarifies both directions of the operation. It is unambiguously distinct from the sibling bucket_quota_get (read) and set_bucket_policy (different resource).

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 context an agent needs: admin-capable credentials required, dry_run for previewing, and bucket_name sourced 'from bucket_ls'. It does not explicitly say when to prefer this over set_bucket_policy or when not to use it, but the operational preconditions are clear.

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