Skip to main content
Glama

Upload Asset

upload_asset

Uploads one illustration, logo, background, panorama, font, recording, image, video or audio asset. Maximum 25 MB per file. HTTPS URLs and base64 data are supported; local paths are npm/stdio-only. Returns a project-relative storage path and available media metadata. Font registration is enabled by default. Upload alone does not apply an asset to a design or change the project icon.

Input Schema

NameRequiredDescriptionDefault
sourceYesThe file source — provide an HTTPS URL or base64 data, or a local file path for npm/stdio, with an appropriate filename.
fileTypeYesUse mockup-media for mockup screens/recordings and mockup soundtracks, promo-media for promo video/audio footage, font for TTF/OTF/WOFF/WOFF2, or an image category. Mockup recordings are checked on upload (H.264, ≤1080 px short side, keyframe every ≤2 s, ≤60 fps) and rejected with an ffmpeg command when unsuitable.
projectIdYes
fontFamilyNoFont uploads only: family name to register instead of the one derived from the filename. Upload each weight file with the same fontFamily.
registerFontNoFont uploads only (default true): add the file to the project's custom fonts (metadata.customFonts) like the editor's font upload. Family, weight and style come from the filename (e.g. Inter-BoldItalic.ttf).

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
messageNo
successYes
widgetDataJsonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false) by disclosing the 25 MB limit, the transport-dependent source restrictions, the returned project-relative path and media metadata, the default-on font registration, and the fact that uploading has no side effects on designs or the project icon. Those are exactly the non-obvious traits an agent needs before calling a mutation.

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?

Front-loaded with the action and accepted asset types, then constraints, then the scope disclaimer. Five short sentences, each carrying distinct operational information with no 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?

For a 5-parameter mutation with a nested source object and an existing output schema, the description covers the size limit, source transports, font registration behavior and post-upload state. Nothing an agent needs to invoke it correctly appears to be missing.

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 80%, so the schema already explains source, fileType, fontFamily and registerFont in detail. The description mostly restates that content (media types, HTTPS/base64/local path, font registration default) rather than adding new meaning, so the baseline 3 applies.

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?

Specific verb plus resource ('Uploads one ... asset') with an explicit enumeration of the accepted asset kinds. The closing sentence carves out scope against siblings that apply assets to designs or set project icons, so an agent can separate this from apply_* and replace_asset without opening a schema.

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?

States the operating context clearly: 25 MB cap, HTTPS/base64 supported, local paths only in npm/stdio, and 'Upload alone does not apply an asset to a design' which signals a follow-up step is needed. It does not name the sibling to use next (e.g. prepare_asset_upload or the apply_* tools), so routing is implied rather than 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.