Skip to main content
Glama

Request Upload Slots

request_upload

Reserve presigned PUT URLs for uploading one or more large or binary files directly to storage, bypassing the 1 MB inline limit. Binary files include images, web fonts (.woff, .woff2, .ttf, .otf), PDFs and other documents, and MP4 (.mp4, .m4v) or WebM (.webm) video; video counts against storage and is capped per file at 100 MB on Lite, 250 MB on Pro and 1 GB on Business (Free is bounded by its 25 MB storage). Omit site_id to create a new pending site atomically (supply subdomain/title for the new site). Provide site_id to add or replace files on an existing site. The caller must PUT each file to its returned upload_url, then call confirm_upload once with the batch upload_id.

Input Schema

NameRequiredDescriptionDefault
modeNoOnly used with site_id. merge = add/overwrite the specified files while keeping all other site files. replace = replace the entire site with only these files. Default is 'merge'. A new site (no site_id) always publishes exactly this batch.merge
filesYesOne or more files to upload. All files in this call are confirmed together as a single atomic batch.
titleNoDisplay name for the new site. Only used when site_id is omitted. Optional.
site_idNoThe site's public identifier. Omit when creating a new site — the pending site and batch are created in one operation.
subdomainNoRequested subdomain for the new site. Only used when site_id is omitted. Optional — Upfling assigns one if omitted.

Output Schema

NameRequiredDescriptionDefault
slotsYes
site_idNo
upload_idYes
expires_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (non-readonly, non-idempotent, non-destructive), it discloses the two-step PUT-then-confirm protocol, batch atomicity, and per-plan size caps for video. It does not say what happens to a pending site if confirm_upload is never called, which is the one meaningful gap.

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 required follow-up step. The file-type enumeration and plan-tier caps are dense but the caps carry real decision value; the enumeration is the one slice that could be trimmed.

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?

For a multi-step upload tool with an output schema present, the description covers the protocol, the branching on site_id, and the limits an agent must respect before calling. Nothing needed to invoke it 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%, so baseline is 3; the description earns an extra point by explaining the site_id branch and the role of subdomain/title for new sites. It does not touch the merge vs replace semantics, leaving that entirely to the schema.

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?

States a specific verb and resource ('Reserve presigned PUT URLs for uploading ... files directly to storage') and immediately scopes it against the inline path by naming the 1 MB limit, which separates it from write_site_files.

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?

Explicitly gives the two branches: omit site_id to atomically create a pending site (with subdomain/title), or provide site_id to add/replace files on an existing site. It also names the required follow-up call, confirm_upload, and the condition that selects it.

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.

Resources