Skip to main content
Glama
Amazon S3 MCP Server

Amazon S3 MCP Server

by aggeentik

List S3 Bucket Objects

s3_list_objects
Read-onlyIdempotent

List objects in an S3 bucket with optional prefix filtering and pagination to browse contents or find specific files in large datasets.

Instructions

List objects in an S3 bucket with optional prefix filtering and pagination.

This tool retrieves a list of objects (files) from an S3 bucket. Use it to:

  • Browse bucket contents

  • Find specific files by prefix

  • Paginate through large result sets

Args: bucket_name: S3 bucket name (3-63 characters, lowercase, numbers, hyphens, dots) prefix: Filter objects by key prefix (e.g., 'logs/2024/' to find all logs from 2024) limit: Max objects to return per request (1-1000, default: 20) continuation_token: Token from previous response to get next page response_format: Output format - 'markdown' (default) or 'json'

Returns: Formatted list of objects with key, size, last modified date, and storage class. If more results exist, includes continuation token for next page.

Error Handling: - Bucket not found: Returns error with suggestion to verify bucket name - Access denied: Returns error with IAM permission suggestions - Invalid input: Returns validation error with specific field issues

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_name": "<bucket_name>"
    },
    "name": "s3_list_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
prefixNo
bucket_nameYes
response_formatNomarkdown
continuation_tokenNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description goes beyond them by documenting error modes (bucket not found, access denied with IAM suggestions, validation errors) and the continuation-token pagination contract, which is genuinely useful for recovery decisions. It loses a point only because the 'Returns' section largely restates what the output schema already carries.

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?

The summary sentence is front-loaded and the sections (Use it to / Args / Returns / Error Handling) are easy to scan. It is somewhat longer than needed, with the Returns block duplicating the output schema, but no sentence is pure filler.

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?

For a five-parameter listing tool with rich annotations and an output schema, the description covers input semantics, pagination mechanics, return shape, and failure modes. An agent has everything needed to call it correctly and to handle a truncated result set or an access-denied response.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry the full burden, and it does: bucket_name naming constraints (3-63 chars, lowercase, numbers, hyphens, dots), a concrete prefix example ('logs/2024/'), the limit range and default (1-1000, default 20), the continuation_token's origin ('Token from previous response'), and response_format values with default. Every one of the five parameters gains meaning not present in the schema.

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 opening line states a specific verb and resource ('List objects in an S3 bucket') plus the two modifiers (prefix filtering, pagination). The follow-up use-case list ('Browse bucket contents', 'Find specific files by prefix', 'Paginate through large result sets') makes it unambiguous against siblings like s3_get_object (single object) and s3_put_object (write).

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

Usage Guidelines4/5

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

The 'Use it to:' block gives three concrete usage contexts, including when to reach for prefix filtering versus plain browsing and when to paginate. It stops short of explicit exclusions or naming s3_get_object as the alternative for fetching a single object's contents, so it lands at clear-context-without-exclusions rather than a full 5.

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