Skip to main content
Glama
backblaze-labs

Backblaze B2 MCP Server

Official

b2_create_key

Destructive

Create a B2 application key with defined capabilities, bucket scope, and expiration. The secret is written to an out-of-band sink or returned inline with a warning.

Instructions

Create a B2 application key. In file sink mode, the one-time key secret is written to the configured out-of-band secret sink and the MCP response contains only redacted metadata plus a secretSink pointer. In inline mode, the secret is returned with an explicit warning.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoConfirm this durable credential creation. Required when the server destructive policy is 'confirm' (the default).
keyNameYesHuman-readable name for the new key.
bucketIdNoDeprecated single-bucket restriction. Use bucketIds for new integrations; do not provide both.
bucketIdsNoOptional bucket restrictions. Omit for account-wide access.
namePrefixNoOptional file-name prefix restriction for file capabilities.
capabilitiesYesB2 capabilities to grant to the new key.
idempotencyKeyYesCaller-generated idempotency key. Reuse the same value only when retrying the identical durable-key creation request.
validDurationInSecondsNoOptional key lifetime in seconds. Omit for no expiration.
Install Server

TDQS

A3.6/5.0
Behavior4/5

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

The description adds meaningful behavioral context beyond the annotations: it explains how the secret is handled in file sink mode versus inline mode, and what the MCP response contains in each case. This is valuable because the tool is destructive and non-idempotent, and the secret-handling behavior is not obvious from annotations alone.

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

Conciseness4/5

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

The description is compact and front-loaded with the core purpose. Each sentence adds value, particularly the mode-specific secret-handling details, though terms like 'file sink mode' and 'inline mode' are introduced without explanation.

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

Completeness3/5

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

With no output schema, the description does a decent job explaining response contents, but it leaves ambiguity about how an agent determines which mode (file sink vs inline) is active. Required parameters like confirm and idempotencyKey are covered by the schema, so the main gap is the mode-selection context.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all eight parameters. The tool description itself does not add parameter-level detail, matching the baseline score for a fully documented schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Create a B2 application key.' This clearly distinguishes it from sibling tools like b2_delete_key and b2_list_keys, though it does not explicitly contrast against them in text.

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

Usage Guidelines3/5

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

The intended use is implied by the tool name and first sentence: use when you need to create a B2 application key. However, there is no explicit guidance about when to prefer this over related key-management tools or any exclusions.

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