Skip to main content
Glama
backblaze-labs

Backblaze B2 MCP Server

Official

s3_delete_object

Destructive

Delete a single B2 object through the S3 API. Specify versionId to permanently remove a specific version; otherwise, standard delete semantics may create a delete marker in versioned buckets.

Instructions

Delete one B2 object through the S3-compatible API. Use s3_list_object_versions first when you need to target a specific version or delete marker; use s3_delete_objects for batches up to 1000. Requires deleteFiles and destructive confirmation by policy; targeting a specific versionId additionally requires readFiles, because native B2 version binding is verified first. Omitting versionId applies normal S3 delete semantics and can create a delete marker in versioned buckets; providing versionId permanently removes that version after that binding check.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesExact object key to delete.
bucketYesBucket name containing the object to delete.
confirmNoFallback confirmation for this destructive/irreversible operation when the effective server destructive policy is 'confirm' and MCP elicitation cannot run.
versionIdNoExact version ID to delete. Omit to delete the current object by S3 semantics, which may create a delete marker for versioned buckets.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changed
    • changedInput schema / properties / bucket / description
      Previous value: -"The bucket name."New value: +"Bucket name containing the object to delete."
    • changedInput schema / properties / confirm / description
      Previous value: -"Confirm this destructive/irreversible operation. Required when the server destructive policy is 'confirm' (the default)."New value: +"Fallback confirmation for this destructive/irreversible operation when the effective server destructive policy is 'confirm' and MCP elicitation cannot run."
    • changedInput schema / properties / key / description
      Previous value: -"The object key to delete."New value: +"Exact object key to delete."
    • changedInput schema / properties / versionId / description
      Previous value: -"Version ID of the specific version to delete."New value: +"Exact version ID to delete. Omit to delete the current object by S3 semantics, which may create a delete marker for versioned buckets."
  2. First observedv0.2.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already indicate destructiveHint=true, but the description adds crucial behavioral nuance: omitting versionId can create a delete marker in versioned buckets, while providing versionId permanently removes that version after a native B2 binding check. It also discloses permission requirements beyond the annotation flags, which is highly valuable for a destructive operation.

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 dense but every sentence earns its place: core action first, then alternative routing, then permissions, then versioning semantics. It is front-loaded and contains no filler or repetition of schema fields.

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 destructive single-object delete with no output schema, this description is complete: it covers the operation, the aliasing through S3-compatible API, versioning consequences, permission requirements, and the key sibling alternatives. An agent has everything needed to invoke the tool correctly and safely.

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 meaningful semantics beyond the schema by explaining the behavioral consequences of omitting versus providing versionId, and by tying versionId usage to an additional readFiles permission. This goes beyond simply restating parameter names.

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?

States a specific verb ('Delete'), a specific resource ('one B2 object'), and the exact interface ('S3-compatible API'). It also distinguishes itself from the sibling tools s3_delete_objects and s3_list_object_versions, so an agent can tell them apart immediately.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells the agent when to use s3_list_object_versions first (targeting a specific version or delete marker) and when to use s3_delete_objects (batches up to 1000). It also states the permission prerequisites for the base operation and for versionId targeting, leaving no ambiguity about invocation context.

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

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