Skip to main content
Glama

bucket_object_lock_set

Destructive

Set a bucket's default object retention rule using COMPLIANCE or GOVERNANCE mode with days or years, or clear the rule. Object Lock must be enabled when the bucket is created.

Instructions

Set a bucket's default retention rule: mode COMPLIANCE or GOVERNANCE and either days or years; clear_default=true removes the rule instead. Object Lock itself can only be enabled when the bucket is created (bucket_create object_lock=true). Needs confirm=true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bucket": "<bucket>"
    },
    "name": "bucket_object_lock_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
modeNo
yearsNo
bucketYes
regionNo
confirmNo
clear_defaultNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false; the description adds real context beyond that, namely the confirm=true gate, the prerequisite that Object Lock must be enabled at bucket creation, and that clear_default deletes the rule. It omits the key behavioral asymmetry that a COMPLIANCE-mode rule generally cannot be shortened or removed, which matters for a destructive operation.

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?

Three tight sentences, front-loaded with the primary action, then the prerequisite, then the confirm requirement. No redundant restatement of the name or title.

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 7-parameter destructive mutation with an output schema already covering return values, the definition covers the essentials: mode values, duration choice, clearing, and confirmation. The remaining gap is interaction behavior when both days and years are supplied and the irreversibility of COMPLIANCE mode.

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 load, and it does: it spells out the two legal mode values (absent from the schema), the days-or-years choice, the semantics of clear_default, and the confirm flag. Only bucket and region are left unexplained, which are self-evident from the 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 and resource ("Set a bucket's default retention rule") and enumerates the controlling inputs: mode COMPLIANCE or GOVERNANCE, days or years, or clear_default to remove. It also distinguishes itself from bucket_create by noting Object Lock can only be turned on at bucket creation, so an agent can tell which tool owns which action.

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: use this to set the bucket-level default retention rule, use bucket_create for enabling Object Lock itself, and use clear_default=true to remove rather than set. It does not name the per-object siblings (object_retention_set, object_compliance_set), so the bucket-vs-object split is only implied by the word "bucket's default".

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

Deploy Server

Other Tools