Skip to main content
Glama

Cloudflare: Get r2 bucket

cloudflare_get_r2_bucket
Read-only

Fetch R2 bucket metadata by name to view creation date, storage class, location, and object count. Use it to inspect bucket configuration and usage before managing storage.

Instructions

[UNIFIED] Fetch R2 bucket metadata by name (requires R2 read permission) — creation date, storage class, location, object count.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>",
      "bucket_name": "<bucket_name>"
    },
    "name": "cloudflare_get_r2_bucket"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes
account_idNo
bucket_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.14.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, and the description is consistent with a safe read. It adds two pieces of real value beyond annotations: the required R2 read permission and the fields returned (creation date, storage class, location, object count), which matters since there is no output schema. It does not cover error behavior for a missing bucket or whether account_id scoping changes the result.

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?

A single front-loaded sentence with no filler; the permission note and return-field list are packed into one dash clause. The '[UNIFIED]' prefix is metadata noise rather than tool guidance, a minor deduction.

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?

For a simple read tool with readOnlyHint set, the description covers purpose, permission, and return shape, which is most of what an agent needs. The gaps are the unexplained site/account_id parameters and no mention of failure mode when the bucket name does not exist, which matter because no output schema exists to clarify results.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description must compensate and largely does not. Only bucket_name is implicitly explained ('by name'); 'site' and 'account_id' receive no explanation of what they are, whether account_id defaults to the token's account, or when to supply it. That leaves two of three parameters undocumented anywhere.

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?

States a specific verb and resource — 'Fetch R2 bucket metadata' — and scopes it with 'by name', which implicitly separates it from the list_r2_buckets sibling. It also enumerates the metadata fields returned, so the agent knows exactly what it gets. It stops short of explicitly naming the list alternative, which keeps it from a 5.

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 phrase 'by name' implies the correct usage condition (you already have a bucket name), and the parenthetical states the prerequisite permission (R2 read). However there is no explicit when-not guidance and no pointer to cloudflare_list_r2_buckets for discovery, leaving the agent to infer the selection rule.

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

Deploy Server

Other Tools