Skip to main content
Glama

Read S3 object

s3_read_object
Read-only

Read S3 object content with capped range requests to avoid streaming large files. Returns UTF-8 text or base64 encoding.

Instructions

Read object content. Uses a Range request capped by maxBytes so large objects never stream in full. encoding=auto returns UTF-8 text when decodable, otherwise base64.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesObject key
bucketYesBucket name
encodingNoHow to encode the body (default: auto)
maxBytesNoMax bytes to read (default: 262144)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnly/destructive/openWorld, so the bar is lower, yet the description adds real operational context: a Range request capped by maxBytes means large objects are never fully streamed, and encoding=auto has defined fallback behavior. It does not state error behavior for missing keys, but the added traits go meaningfully beyond the annotations.

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 with the core purpose front-loaded and no filler. Each sentence carries distinct information: purpose, size-bound behavior, and encoding behavior.

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?

With no output schema, the description must convey what comes back, and it does explain that the returned body is UTF-8 or base64 depending on encoding. It leaves out failure/not-found behavior and pagination-style continuation for truncated reads, which is a minor gap for a read tool.

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 description coverage is 100%, so baseline is 3, but the description adds semantics the schema lacks: that maxBytes is enforced via a Range request (bounding transfer cost) and that encoding=auto returns UTF-8 when decodable and falls back to base64. These explain the behavior of the two optional parameters rather than restating their names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Read object content') that is clearly distinct in intent from sibling operations like s3_list_objects, s3_head_object, and s3_put_object. It stops short of explicitly contrasting itself with s3_head_object (metadata-only), so it misses the top tier.

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

Usage Guidelines2/5

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

No when-to-use guidance and no alternatives named. The obvious selection question (content read vs s3_head_object for metadata-only) is left entirely to inference. This matches the calibration case of a description with no explicit usage conditions.

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