Skip to main content
Glama
backblaze-labs

Backblaze B2 MCP Server

Official

b2_update_file_retention

DestructiveIdempotent

Set or update a file version's retention policy in B2, choosing governance or compliance mode. Extend retain-until dates in compliance, or clear governance policies with bypass.

Instructions

Set or modify the retention policy on a specific file version in B2. Supports governance and compliance retention modes. In compliance mode, the retain-until date can only be extended. Requires the writeFileRetentions capability.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileIdYesThe B2 file ID of the file to update.
confirmNoConfirm this irreversible/protection-removing operation. Required when the server destructive policy is 'confirm' (the default).
fileNameYesThe name of the file (required by the B2 API alongside fileId).
fileRetentionYesRetention policy to apply, or { mode: null, retainUntilTimestamp: null } to clear. This is the flat shape B2's write API expects — do NOT include the read-only isClientAuthorizedToRead/value wrapper that b2_get_file_info returns.
bypassGovernanceNoIf true, allows overriding governance-mode retention. Requires bypassGovernance capability.
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already mark this as destructive and non-read-only; the description adds useful behavior beyond that, such as 'In compliance mode, the retain-until date can only be extended' and the required writeFileRetentions capability. There is no contradiction with annotations. It could include more side-effect detail, but the provided context is meaningful.

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?

Three short sentences carry the essential information: purpose, mode support, compliance constraint, and capability requirement. Every sentence earns its place with no filler or repetition.

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?

The description plus the richly documented schema cover the core operation, prerequisites, mode restrictions, required parameters, and the confirm behavior. There is no output schema, but for a mutation tool this is acceptable. A minor gap is that the description does not explicitly summarize clearing behavior, though the schema covers it.

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 description coverage is 100%, so the baseline is 3. The description adds extra parameter-relevant meaning: the compliance mode only allows extending retain-until, and the capability requirement affects whether certain operations are permitted. This goes beyond what the schema's property descriptions state.

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 opens with 'Set or modify the retention policy on a specific file version in B2,' naming the action, the resource, and the scope precisely. It also names the two supported retention modes, distinguishing this from legal-hold and bucket-level operations. This is specific and non-tautological.

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 clearly establishes when the tool is applicable—when a B2 file version's retention policy needs to be set or modified—and adds the capability prerequisite. It does not explicitly name alternative tools, but the operation scope and sibling names make the intended use unambiguous. The schema covers the confirm flag for destructive operations.

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