Skip to main content
Glama

object_metadata_update

Updates an object's content type, cache control, or user metadata in place, avoiding re-upload. Fields not provided keep current values; provided metadata replaces existing user metadata.

Instructions

Change an object's content type, cache control or user metadata without re-uploading it (a copy onto itself). Fields not passed keep their current values; metadata, when passed, replaces all user metadata.

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

Input Schema

NameRequiredDescriptionDefault
keyYes
bucketYes
regionNo
metadataNo
content_typeNo
cache_controlNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is partly given. The description goes beyond them by disclosing the copy-onto-self mechanism and the replace-not-merge semantics of metadata, which is the main surprising/destructive side effect here. It stops short of stating effects on versioning, ETag, last-modified, or object ACL/retention, which is what an agent would want to confirm.

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?

Two tight sentences, mechanism first, then parameter semantics. No filler and no repetition of the tool name.

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?

An output schema exists and annotations cover safety, so the description only needs to explain mutation semantics, which it does well. The remaining gap is the side-effect surface of a copy-onto-self (version creation, ETag/mtime changes, interaction with object lock/legal hold), which is not covered.

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?

With 0% schema description coverage, the description carries the burden and mostly does: it explains the three optional fields' meaning, that omitted fields retain current values, and critically that a supplied metadata object replaces ALL user metadata rather than merging. Region and the identity params are left to the schema, which is reasonable.

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 (change) on specific fields (content type, cache control, user metadata) of a named resource (an object), and adds the key constraint that no re-upload is needed. The parenthetical '(a copy onto itself)' makes the implementation mechanism explicit, which separates it cleanly from object_copy and object_put_text.

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?

Implicit usage guidance is strong: use this when you want new metadata/content-type/cache-control on an existing object rather than re-uploading. However, no sibling tool is named and no exclusion condition is given (e.g., when to prefer object_copy or how this interacts with object_tagging / object_acl_set).

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