Skip to main content
Glama

object_retention_get

Read-only

Retrieve an object's or version's retention mode and retain-until date, or confirm that no retention is configured.

Instructions

Show an object's (or one version's) retention mode and retain-until date, or {"configured": false} when it has none.

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>"
    },
    "name": "object_retention_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
bucketYes
regionNo
version_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/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 genuine context beyond that by disclosing the response behavior for the unconfigured case and the object-vs-version scope. It omits prerequisites (bucket must have object lock enabled) and not-found/error behavior.

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 with the primary purpose first and the edge case second. No filler, no repetition of the tool name, and nothing that does not earn its place.

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?

An output schema exists, so return values need not be enumerated, and annotations cover the read-only safety profile. Combined with the description's stated scope and negative case, an agent has enough to call this correctly; only the region parameter and object-lock prerequisite are minor gaps.

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 must carry parameter meaning, but it only partially does: 'or one version's' hints that version_id is optional and selects a version, while bucket, key, and especially region receive no explanation. The optional region parameter and the default-to-current-version behavior are left entirely undocumented.

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?

Uses a specific verb ('Show') with a precise resource ('retention mode and retain-until date') and states the scope alternatives ('an object's (or one version's)'). It also states the negative-case result ({"configured": false}), which lets an agent distinguish this read tool from object_retention_set without opening either schema.

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: read retention when you need it. There is no explicit when-to-use or when-not guidance, and no mention of the closely related bucket_object_lock_get (bucket-level default) or object_compliance_get, so an agent must infer which retention-related read tool to pick.

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