Skip to main content
Glama

upload_media_base64

Upload a local image, video, or audio file into Sequencer by passing base64 file contents. This is the MCP-native local-file path when the client can read the file bytes. For large videos, prefer the REST /v1/upload multipart endpoint to avoid MCP payload limits.

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": {
      "workspaceId": "<workspaceId>",
      "fileName": "<fileName>",
      "mimeType": "<mimeType>",
      "base64Data": "<base64Data>"
    },
    "name": "upload_media_base64"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNameYesOriginal file name, e.g. idle_loop_silent.mp4
folderIdNoOptional destination folder ID
mimeTypeYesMIME type, e.g. video/mp4
base64DataYesBase64-encoded file contents. Data URL prefixes are accepted.
workspaceIdYesThe workspace ID
idempotencyKeyNoStable upload/import key. Repeating the same bytes returns the original media without overwriting edits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "description": "Stable upload/import key. Repeating the same bytes returns the original media without overwriting edits.",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It adds real value by warning about MCP payload limits and steering large files to a multipart endpoint, but it says nothing about authentication requirements, maximum supported file size, whether the upload is synchronous, or what the call returns. For an unannotated mutation tool this is informative but incomplete.

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?

Two sentences, no filler. The primary use case and mechanism are front-loaded, with the escape hatch for large files placed second where it does not dilute the main instruction.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter mutation tool with no annotations and no output schema, the description covers what it does, the transport mechanism, and the size-driven alternative. It stops short of telling the agent what a successful call yields (a media ID, presumably) or any failure modes, which would close the remaining gap created by the absent output schema.

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 100%, with each of the six parameters individually documented (including idempotency semantics and data-URL prefixes), so the baseline is 3. The description adds nothing parameter-specific beyond noting that base64 contents are the payload, leaving the schema to do all the work.

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 (upload), resource (image/video/audio file), and the exact mechanism (base64 contents) plus destination (Sequencer). The second sentence distinguishes this from other upload paths by calling it 'the MCP-native local-file path', so an agent can tell it apart from a URL-based import 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?

Gives a clear condition for use ('when the client can read the file bytes') and an explicit exclusion with a named alternative ('For large videos, prefer the REST /v1/upload multipart endpoint'). No sibling tool for URL-based import is named, but the positive/negative conditions are stated, which is more than most definitions offer.

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.