Skip to main content
Glama
Amazon S3 MCP Server

Amazon S3 MCP Server

by aggeentik

Generate Presigned URL for Download

s3_get_object
Read-onlyIdempotent

Generate a time-limited presigned URL for downloading an S3 object without AWS credentials, so users can share files and download in a browser or HTTP client.

Instructions

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

This tool creates a secure URL that allows downloading an object without AWS credentials. The URL is time-limited and automatically expires.

Use cases:

  • Share files with users who don't have AWS access

  • Download objects in browser or HTTP client

  • Integrate S3 downloads in applications without AWS SDK

Args: bucket_name: S3 bucket name key: Object key (path within bucket, e.g., 'data/report.pdf') expires_in: URL expiration in seconds (1-604800, default: 3600 = 1 hour) response_content_disposition: Override Content-Disposition (e.g., 'attachment; filename=report.pdf') response_content_type: Override Content-Type (e.g., 'application/pdf') response_format: Output format - 'markdown' (default) or 'json'

Returns: Presigned URL with expiration details and usage example (curl command).

Security Notes: - URLs are time-limited (max 7 days, default 1 hour) - Anyone with the URL can download during validity period - URLs cannot be revoked before expiration - Use shorter expiration for sensitive data

Error Handling: - Bucket/object not found: Returns error with verification suggestions - Access denied: Returns error with IAM permission guidance - Invalid parameters: Returns validation error with field details

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_get_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
expires_inNo
bucket_nameYes
response_formatNomarkdown
response_content_typeNo
response_content_dispositionNo

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?

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely new behavior: the URL expires, cannot be revoked before expiry, and grants download to anyone holding it. The error-handling section further discloses what failures look like (not found, access denied, validation) — context no annotation provides.

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?

Sectioned layout (use cases, args, returns, security, errors) is easy to scan and front-loaded with the core action. There is minor redundancy — the time-limit/expiry point is stated three times across the intro and security notes — which keeps it from a 5.

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 six-parameter tool with an output schema, the definition covers purpose, every argument, the return shape, expiry semantics, and failure modes. Nothing an agent needs to invoke it correctly is missing, and it appropriately does not over-explain the response body since the output schema covers it.

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 six parameters are explained, including the expires_in bounds (1–604800) and default, the response_format enum values, and concrete examples for the content-disposition/type overrides. 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 opening sentence gives a specific verb ('Generate'), a specific artifact ('time-limited presigned URL'), and the resource ('S3 object'). This clearly separates it from the write/delete/list siblings, and the title reinforces it without merely restating the name.

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 three concrete situations (sharing without AWS access, browser/HTTP download, SDK-less integration), which is solid positive guidance. It stops short of explicit when-not rules or naming an alternative such as listing objects first to discover a key, so it does not reach a 5.

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