Skip to main content
Glama

Upload file

upload_file

Upload a small file (image, logo, or short audio) to VideoGen by passing its base64-encoded contents, and wait until it is processed. Returns the file with its id (vg_file_...) and signed URLs. Use the returned fileId for voiceover_to_video, slideshow_to_video, logos, or B-roll. For large files, use create_file_upload instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoMedia kind to associate with the upload. Inferred when omitted.
fileDataYesBase64-encoded contents of the file to upload.
displayNameNoHuman-readable label used to identify the uploaded asset in the VideoGen library. Defaults to 'upload'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoFile type once processing has determined it.
scopeNoFile scope.
fileIdYesFile id (vg_file_...).
hlsSourceNo
descriptionNoFile description when analyzed.
displayNameNoDisplay name for the file.
downloadUrlNoSigned download URL when ready.
publicHlsUrlNo
thumbnailUrlNoSigned thumbnail URL when available.
previewSourceNo
downloadSourceNo
sourceToolTypeNo
transcriptTextNoPlain transcript text when available.
durationSecondsNoDuration in seconds for video/audio; null for images.
thumbnailSourceNo
publicPlaybackIdNo
downloadUrlExpiresAtNoUnix expiry for downloadUrl.
sourceToolExecutionIdNo
thumbnailUrlExpiresAtNoUnix expiry for thumbnailUrl.
isPublicPreviewEnabledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / displayName / description
      Previous value: -"Display name for the file. Defaults to 'upload'."New value: +"Human-readable label used to identify the uploaded asset in the VideoGen library. Defaults to 'upload'."
    • changedInput schema / properties / type / description
      Previous value: -"File type. Inferred when omitted."New value: +"Media kind to associate with the upload. Inferred when omitted."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, not idempotent, not destructive), so the description's added value is the blocking/wait-until-processed behavior and the 'small file' size constraint, which are real traits beyond structured data. It stops short of stating exact size limits, auth requirements, or failure behavior, keeping it out of 5 territory.

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 tight sentences, front-loaded with the action and constraint, followed by the return shape and the routing to the alternative. Every sentence carries distinct information with no redundancy.

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?

With an output schema present, return values need not be re-explained, yet the description usefully summarizes the id and signed URLs. Combined with full schema coverage and clear sibling routing, nothing an agent needs to invoke this correctly is 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 100%, so the schema already documents fileData, type (with enum), and displayName. The description restates that contents are base64-encoded but adds no syntax, format, or default details beyond what the schema provides, matching the baseline when the schema does the heavy lifting.

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) and resource (file) with scope qualifiers ('small file... base64-encoded contents'), and explicitly distinguishes itself from the sibling create_file_upload for large files. An agent can identify the tool and its domain without opening the schema.

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?

Names the alternative explicitly ('For large files, use create_file_upload instead') with the condition that selects it, and enumerates downstream consumers (voiceover_to_video, slideshow_to_video, logos, B-roll) so the agent knows where the returned fileId feeds. When-to-use and when-not-to-use are both present.

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.