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

timeweb-s3-mcp-ai-cli

s3_preview_object

Inspect the format or header of any S3 object by reading only its first bytes with a ranged GET, avoiding full downloads. Returns content type, detected MIME type, and CSV header when present.

Instructions

Read only the first bytes of an object (default and maximum 65536) with a ranged GET; read-only. Use it to inspect the format or header of a file of any size; use s3_get_object when you need the full body of a small object. Returns key, bytes, data, encoding (base64 is chosen automatically for binary data when encoding is omitted), content_type, detected_type (sniffed MIME type) and, for .csv keys or CSV content types, csv_header.

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_preview_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.
encodingNo"text" or "base64"; when omitted, text is used for valid UTF-8 and base64 otherwise.
max_bytesNoNumber of leading bytes to read, 1-65536; default 65536.
version_idNoObject version ID from s3_list_object_versions; omit for the current version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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 / encoding / description
      Added value: +"\"text\" or \"base64\"; when omitted, text is used for valid UTF-8 and base64 otherwise."
    • 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 / max_bytes / description
      Added value: +"Number of leading bytes to read, 1-65536; default 65536."
    • 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.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it declares the operation read-only, states that a ranged GET is used, and explains the automatic base64/text encoding selection and CSV header behavior. It stops short of covering failure modes such as missing keys, permission errors, or versions, which is the only remaining gap for a no-annotation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with purpose, then routing guidance, then the return contract — nothing is wasted. It is dense with parentheticals but every clause conveys operational information rather than restating the name.

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?

There is no output schema, so the description enumerates the returned fields (key, bytes, data, encoding, content_type, detected_type, csv_header) itself, and it also explains the size cap and sibling routing. For a five-parameter read tool this leaves an agent with everything needed to call it and interpret the result.

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 already 100%, so the baseline is 3; the description adds real value by restating the default-and-maximum byte cap and by explaining the encoding fallback rule (base64 chosen automatically for binary data when encoding is omitted) in terms of actual behavior rather than type. Version and bucket parameters are left to the schema, which already documents them.

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?

The description opens with a specific verb and resource ("Read only the first bytes of an object") and immediately scopes it with the ranged GET and the 65536 cap. It explicitly contrasts itself with s3_get_object, so an agent can distinguish it from the closest sibling 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 Guidelines5/5

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

It states the intended use case ("inspect the format or header of a file of any size") and names the alternative with the exact condition that selects it ("use s3_get_object when you need the full body of a small object"). No key decision is left to inference.

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