Skip to main content
Glama
timeweb-s3-mcp-ai-cli

timeweb-s3-mcp-ai-cli

s3_head_object

Read an object's metadata without downloading its body to verify existence, size, or content type before retrieval; returns key, size, ETag, last modified, version, and user metadata.

Instructions

Read one object's metadata without downloading its body; read-only. Use it to check existence, size or content type before s3_get_object, s3_download_file or s3_presign_get. Returns key, size (bytes), etag, content_type, last_modified, version_id and user metadata. A missing key fails with a not-found error (NotFound or http_404).

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": "s3_head_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesFull object key inside the bucket, without the bucket name, e.g. "daily/archive.tar".
bucketYesBucket name, e.g. "backups". Must be inside the configured bucket scope.
version_idNoObject version ID from s3_list_object_versions; omit for the current version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / bucket / description
      Added value: +"Bucket name, e.g. \"backups\". Must be inside the configured bucket scope."
    • addedInput schema / properties / key / description
      Added value: +"Full object key inside the bucket, without the bucket name, e.g. \"daily/archive.tar\"."
    • addedInput schema / properties / version_id / description
      Added value: +"Object version ID from s3_list_object_versions; omit for the current version."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description must carry the safety profile and it largely does: it declares read-only behavior, guarantees the body is not downloaded, lists the returned fields, and specifies the not-found error shape (NotFound or http_404). It does not mention credential or bucket-scope failure behavior beyond the schema note, so it falls just short of full disclosure.

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: capability first, decision guidance second, return shape and error behavior last. No filler, no repetition of the tool name, and the most important constraint (no body download) is front-loaded.

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?

Even without an output schema or annotations, the description enumerates the returned fields (key, size, etag, content_type, last_modified, version_id, user metadata) and the error contract, which is everything an agent needs to call this three-parameter read tool correctly.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and each parameter (bucket, key, version_id) already carries its own description and examples, so the description justifiably does not restate them. It adds no new meaning about version_id semantics or key encoding beyond what the schema provides, making the baseline of 3 correct.

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 ('Read one object's metadata without downloading its body') plus a scope qualifier ('read-only'), which cleanly separates it from s3_get_object and s3_preview_object that would fetch content. An agent can pick this over its siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit use case ('check existence, size or content type') and names the downstream tools it feeds into (s3_get_object, s3_download_file, s3_presign_get), so the ordering decision is unambiguous. It also names the failure mode when the object is absent, which tells the agent this is the right existence probe.

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