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.

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": {
      "projectId": "<projectId>",
      "fileType": "<fileType>",
      "source": "<source>"
    },
    "name": "upload_asset"
  }
}

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 recording-library for device-only screen recordings (mockup-media is a legacy alias), promo-media for video/audio footage, font for TTF/OTF/WOFF/WOFF2, or an image category. Use list_video_recordings with includeMetadata to check a recording for cloud rendering.
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. Changed2 schema fields changed
    • changedInput schema / properties / fileType / description
      Previous value: -"Use 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."New value: +"Use recording-library for device-only screen recordings (mockup-media is a legacy alias), promo-media for video/audio footage, font for TTF/OTF/WOFF/WOFF2, or an image category. Use list_video_recordings with includeMetadata to check a recording for cloud rendering."
    • changedInput schema / properties / fileType / enum
      Previous value: -[
      -  "illustration",
      -  "logo",
      -  "panorama",
      -  "background",
      -  "font",
      -  "mockup-media",
      -  "promo-media"
      -]New value: +[
      +  "illustration",
      +  "logo",
      +  "panorama",
      +  "background",
      +  "font",
      +  "recording-library",
      +  "mockup-media",
      +  "promo-media"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only cover the coarse safety profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false); the description goes well beyond them by disclosing the 25 MB size ceiling, the supported transports (HTTPS URL, base64, local paths only via npm/stdio), and that font registration defaults to on. It also states what comes back (project-relative storage path plus media metadata), which is exactly the behavioral context an agent needs before calling.

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 action and the file-size constraint, then transport rules, return value, and the boundary statement. Dense but each sentence carries distinct information; the only mild redundancy is restating the asset type list that the fileType enum already covers.

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 non-idempotent, open-world upload tool with a nested source object, the description covers size limits, transport constraints, return shape (output schema exists), font registration behavior, and the scope boundary. Nothing an agent needs in order to call 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 80%, so the schema already carries most parameter meaning (source, fileType enum, fontFamily, registerFont). The description still adds value by tying the size limit and transport rules to the source parameter and by confirming the registerFont default, so it exceeds the baseline of 3 without fully restating every parameter.

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 (Uploads) and resource (one asset) and enumerates the accepted asset categories, so an agent can tell it apart from apply/replace style operations without opening any schema. The closing sentence explicitly bounds the action: upload does not apply the asset to a design or change the project icon.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives a useful exclusion ('Upload alone does not apply an asset to a design or change the project icon'), which implies the follow-up tools needed. However, it never names alternatives such as prepare_asset_upload or replace_asset, nor states when to prefer them over this tool, leaving the routing decision to inference.

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.