Skip to main content
Glama

bucket_object_lock_get

Read-only

Check if Object Lock is enabled on a bucket and return its default retention mode and duration, if configured.

Instructions

Show whether Object Lock is enabled on a bucket and its default retention rule (mode, and days or years), if any.

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_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
bucketYes
regionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds meaningful scope detail by noting the retention rule may be absent ('if any'), warning the agent that a null/empty result is possible, but says nothing about permissions, error behaviour or region resolution.

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?

A single front-loaded sentence that states the yes/no question first and then the secondary payload (mode, days or years). The parenthetical is compact and no wording is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema means return shape need not be described, and for a simple read tool the coverage is nearly adequate. The gap is the unexplained 'region' parameter and the absence of any note on permissions or behaviour when Object Lock has never been configured.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 for the two parameters and provides nothing. 'bucket' is inferable, but 'region' with a null default is genuinely ambiguous (does null mean the client's default region?) and the description gives no hint about how it resolves or which region to supply.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Show') on a specific resource (a bucket's Object Lock configuration) and names exactly what is reported: enabled status plus the default retention rule mode and duration. It is clearly a read of the bucket-level lock config, distinguishable from the sibling setter bucket_object_lock_set, though it never names an alternative explicitly.

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?

Usage is only implied by the purpose line: read this when you need to know whether Object Lock is on or what the default retention is. There is no explicit when-to-use, prerequisites (e.g. permissions), or pointer to a related tool such as bucket_object_lock_set or object_retention_get for per-object retention.

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