Skip to main content
Glama
backblaze-labs

Backblaze B2 MCP Server

Official

b2_largest_files

Read-onlyIdempotent

Find which files consume the most storage in a Backblaze B2 bucket. Returns file names, sizes, and upload times, with optional prefix filtering and a scan cap for large buckets.

Instructions

List a bucket's largest objects by size via a live listing. For 'largest files', 'what's taking up space in '. Give the bucket by name or bucketId; optional path prefix. Sorting by size requires a full listing, so on very large buckets the scan is bounded by max_scan and a time budget — it then returns the largest among the objects scanned with truncated=true; pass a prefix to focus on a subtree for a complete ranking. Returns name, size, and upload time — never contents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many of the largest files to return (default 10, max 100).
bucketYesBucket name or bucketId to inspect.
prefixNoOptional path prefix, e.g. "checkpoints/".
max_scanNoSafety cap on objects scanned (default 50,000, max 500,000). Buckets with millions of files cannot be fully sorted by size in one live call; the scan stops at this cap (or a time budget) and returns truncated=true. Narrow with prefix for an exhaustive ranking of a subtree.
Install Server

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnlyHint=true annotation, the description discloses a live listing, bounded scan by max_scan and a time budget, and truncated=true. This materially shapes agent expectations about results being approximate on large buckets, and it explicitly states that file contents are never returned.

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 sentences front-load the purpose, then explain the important scanning caveat and return contents. 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?

With no output schema, the description helpfully states the return fields (name, size, upload time) and the truncated=true behavior. It doesn't discuss auth, error cases, or how it relates to b2_usage_growth, but for a read-only listing tool the essential information is present.

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?

The schema covers 100% of parameters with descriptions, and the tool description adds meaningful guidance for prefix and max_scan, explaining the full-listing requirement, truncation behavior, and subtree ranking. This adds value beyond the schema without needing to do more.

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 action and resource ('List a bucket's largest objects by size') and clarifies that it returns metadata, never contents. It does not contrast itself with sibling tools like b2_usage_growth or b2_list_buckets, so an agent must infer differentiation.

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?

Gives clear context with natural-language triggers ('largest files', 'what's taking up space') and instructs using a prefix for a complete subtree ranking. It does not explicitly name alternatives or when not to use this tool, though the 'never contents' caveat helps.

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