# S3 Multipart Upload Calculator AI Agent Connect

> Deterministic AWS S3 multipart upload optimization tool.

## Overview
- **Category:** cloud-storage
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_aNxe7tzMgQlPrKLnARcYDfW6PHvx0URWYG6LBpTX/ai-agent-connect
- **Tags:** s3, aws, multipart-upload, cloud, optimization

## Description

This MCP server provides precise tools for optimizing AWS S3 multipart uploads. It calculates exact part counts, estimated upload durations, and validates configurations against S3 service limits like the 5 TB object maximum and 10,000 part limit. Use `calculate_upload_plan` to determine how a file will be partitioned, `recommend_optimal_configuration` to find the best part size for your bandwidth, and `get_lifecycle_and_integrity_policy` to generate checksum and lifecycle cleanup settings.

## Tools

### get_lifecycle_and_integrity_policy
Generates the necessary configuration for data integrity and automated cleanup of failed uploads

### recommend_optimal_configuration
Suggests the best part size and threshold settings based on the provided bandwidth and file size

### calculate_upload_plan
Provides the fundamental breakdown of how a specific file will be partitioned and how long the process will take

## Prompt Examples

**Prompt:** 
```
Calculate an upload plan for a 500 GB file with 100 MB parts, 4 parallel uploads, and 50 Mbps bandwidth.
```

**Response:** 
```
The upload requires 5,120 parts. The estimated upload time is approximately 23,040 seconds (6.4 hours). The configuration is within S3 limits.
```

**Prompt:** 
```
What is the best part size for a 1 TB file on a 100 Mbps connection?
```

**Response:** 
```
For a 1 TB file with 100 Mbps bandwidth, a suggested part size is 128 MB to balance throughput and retry efficiency, with a recommended multipart threshold of 100 MB.
```

**Prompt:** 
```
Generate a policy for aborting incomplete uploads after 7 days using SHA256.
```

**Response:** 
```
The policy is set to abort incomplete multipart uploads after 7 days using the SHA256 checksum algorithm for data integrity.
```

## Frequently Asked Questions

**How do I know if my part size is valid?**
The `calculate_upload_plan` tool will automatically check if your part size is at least 5 MB and if the total part count stays within the 10,000 limit, providing validation flags if they are not.

**Can I optimize for specific network speeds?**
Yes, you can use `recommend_optimal_configuration` by providing your available bandwidth in Mbps to receive a suggested part size that balances API overhead and retry costs.

**How can I prevent costs from failed uploads?**
Use `get_lifecycle_and_integrity_policy` to generate an S3 lifecycle rule that automatically aborts incomplete multipart uploads after a specified number of days.
