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. 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

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault
slotsYes
site_idNo
upload_idYes
expires_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations are all false, so the description carries the full burden of behavioral disclosure. It reveals the multi-step nature (PUT each file, then confirm_upload), the atomic batch semantics for new sites, the mode-dependent behavior (merge vs replace), and the fact that a new site is created as 'pending.' This goes well beyond the annotations and gives an agent a realistic model of the operation's side effects.

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?

Three sentences, no filler. The core purpose is front-loaded, the two usage branches are clearly separated, and the required follow-up action is stated at the end. Every sentence contributes essential information.

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 the tool's complexity (multi-step upload, new vs existing site, merge/replace modes), the description covers the full workflow, the atomicity guarantee, and the dependency on confirm_upload. An output schema exists, so return values need not be described. No critical operational detail 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 the baseline is 3. The description adds value by explaining the conditional semantics of site_id ('Omit when creating a new site... Provide to add or replace files'), clarifying that subdomain/title are only used for new sites, and noting that a new site always publishes exactly the batch. These relationships are not fully captured in the schema's per-field descriptions.

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 opens with a specific verb and resource: 'Reserve presigned PUT URLs for uploading one or more large or binary files directly to storage.' It clearly distinguishes the tool from siblings by mentioning the 1 MB inline limit bypass and the follow-up confirm_upload step, so an agent can tell it apart from write_site_files or replace_site_files without inspecting schemas.

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 gives clear context for when to use the tool: for large/binary files exceeding the inline limit, and it explains the two distinct usage branches (omit site_id for new site, provide site_id for existing site). It does not explicitly name alternative tools for small files, but the 'bypassing the 1 MB inline limit' phrasing implies the alternative, and the workflow with confirm_upload is explicit.

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