Skip to main content
Glama

cloudflare_r2_bucket_domain_add

Attach a custom domain to an R2 bucket for public access. Cloudflare automatically creates a CNAME record to enable serving content through your domain.

Instructions

Attach a custom domain to an R2 bucket, enabling public access via that domain. The domain must belong to a zone in the same account. Cloudflare automatically creates a CNAME record.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesCustom domain to attach (e.g., assets.example.com)
enabledNoWhether the custom domain is enabled (default: true)
zone_idYesZone ID or zone name that owns the domain (e.g., example.com or 32-char hex ID)
bucket_nameYesName of the R2 bucket
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that Cloudflare automatically creates a CNAME record and enables public access. However, it does not mention potential side effects (e.g., whether existing records are overwritten), failure modes (e.g., domain already attached), or reversibility. This is adequate but not exhaustive.

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?

Two sentences front-loaded with the primary action and outcome. Every word is necessary. No repetition or filler.

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?

Given no output schema, the description explains the outcome (public access, CNAME creation) and a key prerequisite (zone/account). It does not cover error scenarios or detailed return values, but for a relatively straightforward mutation tool, this is sufficient.

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 coverage is 100% with parameter descriptions. The tool description adds context (domain must belong to a zone in same account) but does not deepen understanding of individual parameter semantics beyond the schema. Baseline 3 is appropriate.

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 clearly states the verb 'attach a custom domain', the resource 'R2 bucket', and the outcome 'enabling public access via that domain'. It distinguishes from sibling tools like cloudflare_r2_bucket_domain_list and cloudflare_r2_bucket_domain_remove by specifying the action of adding a domain.

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 mentions a prerequisite: 'The domain must belong to a zone in the same account', which guides when the tool can be used. However, it does not explicitly state when not to use it or compare to alternatives like domain list/remove. The implicit guidance is clear enough for an AI agent.

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

Install Server

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/itunified-io/mcp-cloudflare'

If you have feedback or need assistance with the MCP directory API, please join our Discord server