Skip to main content
Glama

Request file upload

request_file_upload

Mint a presigned upload URL for a photo/logo/PDF. Preferred for anything larger than a small icon — do not base64 the file into asset_files and do not compress or generate a replacement. After this returns, PUT the ORIGINAL file bytes to upload_url (same Content-Type), then check_file until status is ready, then pass file_ids to create_design or update_design.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesOriginal filename, e.g. headshot.jpg
size_bytesYesExact byte size of the file that will be PUT
content_typeYesMIME type matching the file, e.g. image/jpeg, image/png, application/pdf

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriNo
file_idYes
next_stepNo
expires_atNo
upload_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations are minimal (all false hints), so the description carries the behavioral burden. It discloses the core behavior: returns an upload_url, requires a PUT, and mandates follow-up with check_file. It could add details about failure modes or auth requirements, but the key workflow is transparent.

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?

Four sentences, no waste. Purpose and usage are front-loaded, and the workflow steps are logically ordered. Every sentence adds value and the structure is easy to follow.

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 tool, the description covers the entire lifecycle: mint, PUT, check, and handoff to design tools. It also specifies allowed file types and contrasts with the sibling upload_file. Output schema exists, so return values are covered. Nothing critical is missing for an agent to call it correctly.

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 all params have descriptions. The description reinforces semantics by noting 'same Content-Type' for content_type and 'exact byte size' for size_bytes, adding usage nuance beyond the schema. This justifies a 4 rather than a baseline 3.

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?

Description states a specific verb ('Mint a presigned upload URL') and resource ('photo/logo/PDF'), and distinguishes from sibling upload_file by noting it's preferred for larger files and explicitly forbids base64 encoding into asset_files. This makes the tool's purpose unambiguous.

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 states when to use (anything larger than a small icon), what not to do (do not base64, do not compress), and the full workflow: PUT original bytes, check_file until ready, then pass file_ids to design tools. This leaves no room for misinterpretation.

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