Skip to main content
Glama

CMO Studio: deploy and host AI-built apps

Get direct upload link

get_direct_upload_url

A link to upload one big file (up to 5,000 MiB: videos, archives) straight to storage, without passing through Studio or the app. size: the file's size in bytes. In an app: the server asks for the link with STORAGE_TOKEN (POST {STORAGE_URL}//direct-upload {path,size,contentType}) and hands only the link to the browser, which uploads in parts with @azure/storage-blob (uploadData); from a terminal: the curl in the answer. finish_direct_upload with the uploadId completes it: Studio checks the size and puts the file at its path.

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": {
      "project": "<project>",
      "bucket": "<bucket>",
      "path": "<path>",
      "size": "<size>"
    },
    "name": "get_direct_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath in the bucket, e.g. videos/clip.mp4
sizeYesFile size in bytes
bucketYesBucket name
projectYesProject slug
contentTypeNoContent type (optional; guessed from the file name)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false) the description discloses real behavior: the 5,000 MiB ceiling, the STORAGE_TOKEN auth requirement, the correct call shape POST {STORAGE_URL}/<bucket>/direct-upload, and the fact that the operation is two-phase and incomplete until finish_direct_upload verifies the size. It also notes uploads bypass Studio/the app, which explains why the server must do a two-hop handoff.

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

Conciseness3/5

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

Purpose and size limit are front-loaded, but the text is one dense run-on sentence chain with an oddly spliced fragment ("size: the file's size in bytes") that duplicates the schema. The "the curl in the answer" phrase is cryptic and costs the reader a re-read.

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?

For a mutating, two-step, auth-gated tool with no output schema, the description covers limits, auth, call shape, and the completing sibling. The only soft spot is the return value — "the curl in the answer" hints at what comes back without stating plainly that the response contains a link and uploadId.

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 baseline is 3; the description's only parameter-level contribution is restating "size: the file's size in bytes" and listing path/size/contentType in the POST body example. It adds no format, constraint, or interaction detail (e.g. whether contentType is inferred from path) beyond what the schema already documents.

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?

"A link to upload one big file (up to 5,000 MiB: videos, archives) straight to storage" states a specific resource (a presigned upload link) plus its scope and size ceiling, which implicitly separates it from the smaller-file upload siblings. It never names get_file_upload_url / get_deploy_upload_url / get_import_url, so the agent must infer the boundary from the 5 GiB note rather than being told.

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 concrete usage contexts — server-side call with STORAGE_TOKEN handing the link to a browser, or curl from a terminal — and names the required follow-up step "finish_direct_upload with the uploadId completes it." It does not state when NOT to use it (e.g. small files, existing-path uploads) or point at a specific alternative sibling.

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.