Skip to main content
Glama

object_retention_set

Destructive

Set an object's or single version's retention to COMPLIANCE or GOVERNANCE until a specified UTC date, with optional governance bypass and required confirmation.

Instructions

Set an object's (or one version's) retention: mode COMPLIANCE or GOVERNANCE until retain_until (ISO 8601, UTC if no offset). Compliance retention can't be shortened or removed by anyone; bypass_governance=true lets a permitted user shorten governance retention. 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>",
      "key": "<key>",
      "mode": "<mode>",
      "retain_until": "<retain_until>"
    },
    "name": "object_retention_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
modeYes
bucketYes
regionNo
confirmNo
version_idNo
retain_untilYes
bypass_governanceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already flag destructive=true and readOnly=false, but the description adds real behavioral substance: COMPLIANCE retention cannot be shortened or removed by anyone, governance retention can only be shortened by a permitted user with bypass_governance=true, and confirm=true is mandatory. This is exactly the irreversibility and gate information an agent needs before invoking a destructive call.

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: action and scope first, format and semantics second, risk/gate last. No filler, and the irreversible-compliance caveat is placed where it will be read before the call.

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 an 8-parameter destructive write tool with an output schema and full annotation coverage, the description supplies the missing safety semantics (irreversibility, bypass conditions, confirm gate) and timestamp format. Nothing else is required for correct invocation.

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 burden; it does for the semantically risky parameters — mode values (COMPLIANCE/GOVERNANCE), retain_until format (ISO 8601, UTC assumed when no offset), bypass_governance effect, and confirm. bucket, key, region, and version_id are left to naming and the 'one version's' phrase, which is acceptable for obvious identifiers.

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?

Specific verb and resource: 'Set an object's (or one version's) retention', with the two modes named. An agent can distinguish this from a read (object_retention_get) or a legal-hold tool, though it never explicitly names which sibling to choose instead.

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?

The description implies usage through constraints (confirm=true required, bypass_governance for shortening governance retention) but gives no explicit when-to-use versus alternatives such as object_compliance_set or object_legal_hold_set, nor any preconditions about lock configuration.

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