Skip to main content
Glama

s3_get_object

Retrieve an S3 object from a bucket with a configurable byte cap; requests over the limit are refused instead of truncated, preventing oversized reads.

Instructions

Get an S3 object, capped by max_bytes (default 1 MiB, hard max 5 MiB).

Service: S3 API (not Swift). Read-only. Does not mutate state. Objects larger than the cap are refused rather than truncated.

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
keyYes
bucketYes
max_bytesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses read-only, non-mutating behavior, the default and hard maximum size caps, and the critical refusal-instead-of-truncation policy that forces the caller to handle an error rather than a partial body. It stops short of naming required permissions or the actual error shape.

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?

Four short lines, front-loaded with the action and cap semantics, then the service disambiguation, then the safety guarantee. Every sentence adds information an agent would otherwise have to guess at.

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, so return values need no explanation, and the size-cap and refusal semantics cover the main failure mode. What is missing for a 3-parameter read tool is authorization expectations and whether very small caps or missing keys produce distinct errors.

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 0%, so the description must compensate. It fully specifies the one non-obvious parameter, max_bytes, including its default (1 MiB), hard ceiling (5 MiB), and overflow behavior; bucket and key are left to their self-evident S3 meaning and schema titles, which is a reasonable omission but not a complete one.

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 and resource ("Get an S3 object") and adds scope via the byte cap. It partially differentiates from siblings by declaring "Service: S3 API (not Swift)", which rules out the swift_download_object path, though it never names s3_head_object as the alternative for metadata-only checks.

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?

Usage is only implied: read-only retrieval of an object body, not a metadata probe. There is no explicit "use this when / use X instead" statement, so an agent must infer that s3_head_object is preferable when only size or existence is needed, and that s3_presign_get is for handing out URLs.

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