Skip to main content
Glama

create_bucket

Idempotent

Create a bucket in the signed-in Qencode account.

Writes only inside that account. The only inputs are a bucket name and a
region: no URL, no hostname, and no other storage provider. `region` must
be `us-west` or `eu-central`. A name owned by another account fails with
`bucket_conflict` and creates nothing. A name this account already has
returns `status: "exists"` and does not replace the bucket.

Call this ONLY on an explicit request to create a bucket or to keep a
result long-term. Do NOT call it just because a transcoding request lacks a
`destination`, or because the user says they have no bucket / nowhere to
save the output — that is the default temp-storage case: omit `destination`
(24-hour temp storage) and disclose it, do not provision an account-level
bucket the user did not ask for.

The bucket belongs to the whole Qencode account and is visible to every
project on that account, not just the current one. The call uses the
caller's existing Qencode sign-in. There is no separate storage permission.

Args:
    name: 6–63 chars, lowercase letters / digits / hyphens
        (`^[a-z0-9][a-z0-9-]{4,61}[a-z0-9]$`) — no underscores or uppercase.
        A name that breaks this pattern is rejected (`invalid_bucket_name`).
    region: `us-west` or `eu-central` only.

Returns `{bucket, region, status, destination_prefix}` plus `cdn_origin`
only after this account's CDN name is ready (a fresh bucket usually omits
it until then):
  - `status: "created"` — a new bucket was provisioned in this account.
  - `status: "exists"` — this account already has that name (no-op).
Copy `destination_prefix` into job `destination.url` as
`{destination_prefix}/{new filename or folder}`. Do not assemble the
host and do not copy a listed file's `destination_url` as dest.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesBucket name: lowercase letters, digits, and hyphens only.
regionYesStorage region for the bucket.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
bucketYes
regionYes
statusYes
cdn_originNo
destination_prefixNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / name / description
      Added value: +"Bucket name: lowercase letters, digits, and hyphens only."
    • addedInput schema / properties / name / maxLength
      Added value: +63
    • addedInput schema / properties / name / minLength
      Added value: +6
    • addedInput schema / properties / name / pattern
      Added value: +"^[a-z0-9][a-z0-9-]{4,61}[a-z0-9]$"
    • addedInput schema / properties / region / description
      Added value: +"Storage region for the bucket."
    • addedInput schema / properties / region / enum
      Added value: +[
      +  "us-west",
      +  "eu-central"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / cdn_origin
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / destination_prefix
      Added value: +{
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / error
      Added value: +{
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare non-readOnly, non-destructive, idempotent, closed-world; the description goes well beyond by disclosing account-wide visibility to all projects, use of the caller's existing sign-in with no separate storage permission, conflict semantics (bucket_conflict creates nothing), and the exists/no-op path that never replaces an existing bucket.

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?

Front-loaded with the core action and the critical do-not-provision guidance near the top, and every section carries operational weight (conflict behavior, return statuses, destination_prefix usage). It is longer than strictly necessary, particularly the duplicated name pattern and Args list mirroring the schema, but there is little pure filler.

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?

Given a two-param mutation with annotations and an output schema, the description still usefully explains return fields (bucket, region, status, destination_prefix, conditional cdn_origin), the meaning of each status, and how to consume destination_prefix downstream. Nothing an agent needs to call or interpret this tool correctly is missing.

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 coverage is 100% and both params have descriptions/enums, so the baseline is 3; the description adds real value with rejection error codes (invalid_bucket_name), a restated exact pattern, and the allowed region values in prose. It slightly duplicates the schema pattern rather than adding new syntax, keeping it at 4 rather than 5.

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?

Opens with a specific verb+resource ("Create a bucket") and immediately bounds scope ("in the signed-in Qencode account"). It is clearly distinguishable from siblings like list_buckets, download_url_to_bucket, and transcode_video, and even describes what it does NOT create (no URL, no hostname, no third-party provider).

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?

Gives an explicit call condition ("ONLY on an explicit request to create a bucket or to keep a result long-term") plus an explicit anti-condition with the correct alternative (when a transcode lacks a destination, omit destination for 24-hour temp storage instead of provisioning a bucket). This is exactly the when/when-not/alternative structure that best guides agent selection.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.