s3_put_bucket_lifecycle
Configure lifecycle rules on a Backblaze B2 bucket to automate object expiration and abort incomplete multipart uploads, clearing all rules when an empty array is passed.
Instructions
Set S3 lifecycle rules on a B2 bucket; pass rules: [] to clear the S3 lifecycle configuration. Supports AbortIncompleteMultipartUpload, Expiration, and NoncurrentVersionExpiration. B2 does not support Transition/storage-class rules.
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>",
"rules": "<rules>"
},
"name": "s3_put_bucket_lifecycle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | Rules to set; [] clears the configuration. | |
| bucket | Yes | The bucket name. | |
| confirm | No | Fallback confirmation under 'confirm' when rules is [] or rules expire objects and MCP elicitation cannot run. Not needed for abort-incomplete-upload-only rules. |