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

timeweb-s3-mcp-ai-cli

s3_get_object

Retrieve a small S3 object's full body inline as UTF-8 text or base64, with strict size limits and no truncation. Use it to inspect complete small files or binary payloads up to 256 KiB.

Instructions

Return a small object's whole body inline as UTF-8 text or base64; read-only. Use it for objects up to 262144 bytes (256 KiB); to look at the start of a larger file use s3_preview_object, to save it to disk use s3_download_file, and to hand it over use s3_presign_get. Returns key, bytes, data, encoding and content_type. Fails instead of truncating when the object exceeds max_bytes, and fails on non-UTF-8 content unless encoding is base64.

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_get_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" (default; fails on content that is not UTF-8) or "base64" for binary data.
max_bytesNoLargest body to accept, 1-262144 bytes; default 262144. A larger object fails instead of being truncated.
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\" (default; fails on content that is not UTF-8) or \"base64\" for binary data."
    • 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: +"Largest body to accept, 1-262144 bytes; default 262144. A larger object fails instead of being truncated."
    • 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
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it declares read-only semantics, two hard failure modes (no truncation on oversize objects, non-UTF-8 content unless base64), and the exact fields returned (key, bytes, data, encoding, content_type). An agent knows what happens on the error paths before calling.

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?

Zero filler sentences and the core scope is front-loaded; every clause carries information (limits, alternatives, return fields, failure modes). It is dense and semicolon-chained rather than cleanly segmented, which slightly hurts scanability but not economy.

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, yet the description enumerates the return fields, and for a read-only fetch with five parameters it covers limits, encoding, versioning context via the schema, and failure behavior. Nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100%, so all five parameters are already documented, including max_bytes' no-truncation behavior and encoding's text/base64 distinction. The description largely restates those facts and only adds the '256 KiB' human-readable framing, so it does not meaningfully exceed the structured baseline.

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+resource+scope: 'Return a small object's whole body inline as UTF-8 text or base64; read-only.' The 256 KiB ceiling and 'inline return' framing let an agent distinguish this from s3_preview_object and s3_download_file 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?

It names three alternatives with the exact condition that selects each: s3_preview_object for the start of a larger file, s3_download_file to save to disk, s3_presign_get to hand it over. It also states the size boundary (262144 bytes) at which the agent should switch tools.

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