Skip to main content
Glama
backblaze-labs

Backblaze B2 MCP Server

Official

s3_put_bucket_lifecycle

DestructiveIdempotent

Configure S3 lifecycle rules on a B2 bucket to expire objects, clean up incomplete multipart uploads, and manage noncurrent versions. Pass an empty rules array to clear existing lifecycle configuration.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rulesYesRules to set; [] clears the configuration.
bucketYesThe bucket name.
confirmNoRequired under 'confirm' when rules is [] or rules expire objects. Not needed for abort-incomplete-upload-only rules.
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already mark this as destructive and idempotent. The description adds valuable behavioral detail: passing rules: [] clears the entire lifecycle configuration, and B2 does not support Transition/storage-class rules. This helps an agent avoid invalid or unintended calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three short, information-dense sentences with no filler. The primary action is front-loaded, followed by clearing behavior and supported/unsupported rule types.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the schema already documents all parameters and the annotations cover safety behavior, the description adds the essential B2-specific context. The only minor gap is that it does not explicitly state that setting non-empty rules replaces any existing lifecycle configuration, but this is largely implied by the 'set' and 'clear' semantics.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema by explaining that rules: [] clears the configuration and by enumerating the supported lifecycle actions. The confirm parameter is not described in the description, but the schema already covers it.

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 description states a clear verb and resource: 'Set S3 lifecycle rules on a B2 bucket.' It also names the supported rule types and the key B2-specific limitation around Transition/storage-class rules, which distinguishes this tool from general S3 mutation tools.

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 description gives clear context: this is the tool for lifecycle configuration on a B2 bucket and it clarifies what rule types are supported. It does not explicitly name sibling tools as alternatives or state when not to use this tool, but the scope is specific enough that the intended use case is clear.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/backblaze-labs/b2-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server