Skip to main content
Glama
Amazon S3 MCP Server

Amazon S3 MCP Server

by aggeentik

Generate Presigned URL for Upload

s3_put_object

Generate a time-limited presigned URL to upload files directly to S3 without AWS credentials, enforcing upload parameters such as encryption, ACL, and content type.

Instructions

Generate a time-limited presigned URL for uploading an object to S3.

This tool creates a secure URL that allows uploading a file without AWS credentials. The URL is time-limited and enforces specified upload parameters (encryption, ACL, etc.).

Use cases:

  • Allow users to upload files directly to S3 from browsers

  • Integrate uploads in applications without AWS SDK

  • Enforce upload policies (encryption, content type, etc.)

Args: bucket_name: S3 bucket name key: Destination object key (path, e.g., 'uploads/document.pdf') expires_in: URL expiration in seconds (1-604800, default: 3600 = 1 hour) content_type: MIME type (e.g., 'image/png', 'application/pdf') server_side_encryption: Encryption algorithm ('AES256' or 'aws:kms') metadata: Custom metadata as key-value pairs acl: Access control ('private', 'public-read', 'public-read-write', etc.) response_format: Output format - 'markdown' (default) or 'json'

Returns: Presigned URL with required headers and curl usage example. The response includes all headers that must be sent with the PUT request.

Security Notes: - URLs are time-limited and scoped to specific object key - Enforce encryption with server_side_encryption parameter - Use 'private' ACL unless public access required - Consider bucket policies that require encryption

Error Handling: - Bucket not found: Returns error with bucket verification guidance - Access denied: Returns error with IAM permission details - Invalid parameters: Returns validation errors with corrections

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>",
      "key": "<key>"
    },
    "name": "s3_put_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
aclNo
keyYes
metadataNo
expires_inNo
bucket_nameYes
content_typeNo
response_formatNomarkdown
server_side_encryptionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses that the URL is time-limited and key-scoped, that parameters are enforced at upload time via the URL, and that the caller must send the returned headers with their own PUT. The 'Error Handling' section names concrete failure modes (bucket not found, access denied, validation) with what the error contains, which annotations do not cover.

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 critical constraint (URL generation, not upload) is front-loaded, and the sectioned layout (Use cases / Args / Returns / Security / Errors) scans well. It is somewhat longer than necessary — the time-limited/scoped nature is stated twice, and the Security Notes partially restate the Args entries for encryption and ACL.

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 an eight-parameter, write-adjacent tool with 0% schema coverage, the description supplies everything an agent needs: parameter meaning and defaults, what the response contains (URL plus required headers plus curl example), and the failure modes. An output schema exists, so the brief 'Returns' note is supplementary rather than load-bearing, and nothing material is missing.

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 carries the full burden, and it does: all eight parameters are explained, including the expires_in range (1–604800) and default of 3600, MIME examples for content_type, accepted values for server_side_encryption and acl, and the markdown/json response_format choice. This is meaningfully more than the bare schema types.

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 first sentence gives a specific verb and resource: 'Generate a time-limited presigned URL for uploading an object to S3.' It also resolves the ambiguity created by the tool name 's3_put_object' by making clear that no object is actually written by this call — the agent only receives a URL. That distinguishes it cleanly from the s3_get_object / s3_delete_object / s3_list_objects siblings.

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 cases' block gives concrete situations (browser direct upload, apps without an AWS SDK, enforcing upload policies), which is real when-to-use guidance. It stops short of explicit exclusions or naming an alternative tool for the download/delete paths, so it is clear context without full routing guidance.

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