Skip to main content
Glama

Upload file to private library

asset_upload
DestructiveIdempotent

Upload a local image, audio or video as base64 to your private file library for up to 30 days. If the new file exceeds the library’s space or file-count limit, the oldest uploads that unfinished plans no longer need are deleted first. Returns an upload asset ID and evicted_count without a GPU job. Use this ID in uploads for Video/Edit/Upscale/Voice, or as a Movie asset. Reuse idempotency_key on retries. Never put base64 or a local path in batch arguments.

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": {
      "filename": "<filename>",
      "mime_type": "<mime_type>",
      "base64": "<base64>",
      "idempotency_key": "<idempotency_key>",
      "acknowledge_rights": "<acknowledge_rights>",
      "acknowledge_privacy": "<acknowledge_privacy>"
    },
    "name": "asset_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
base64YesSource file bytes encoded as base64.
filenameYesFilename for the source upload.
mime_typeYesMedia type of the uploaded file.
idempotency_keyYesUnique key for the intended operation. Reuse it on network retries.
acknowledge_rightsYesConfirm the user has the rights or permissions to use the source material.
acknowledge_privacyYesConfirm the user has permission to process any personal data in the inputs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, idempotentHint=true and openWorldHint=false, but the description goes further by explaining what gets destroyed: the oldest uploads are evicted when the space or file-count limit is exceeded. It also discloses the 30-day retention window and that the call returns an asset ID plus evicted_count with no GPU job. The reason this is not a 4 or 5 is that the eviction clause is vague about which uploads qualify ('unfinished plans no longer need'), leaving an agent unsure how much data loss a large upload risks.

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?

Four sentences, front-loaded with the action and retention, then eviction, then downstream usage, then the retry and batch caveats. Every sentence carries information, though the eviction sentence is dense and slightly hedged, which costs a point against a tighter formulation.

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?

There is no output schema, so the description correctly supplies the return shape (upload asset ID and evicted_count, no GPU job), plus retention, eviction, idempotency and downstream consumers. The one gap is the underspecified eviction predicate, which matters for a destructive tool; otherwise an agent has everything needed 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 description coverage is 100%, so the schema already explains filename, mime_type, base64, idempotency_key and both acknowledgements, making 3 the baseline. The description still earns credit above that baseline by constraining where base64 may appear (this tool, never batch arguments) and by tying idempotency_key to retry behavior, which the schema only hints at.

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?

The description opens with a specific verb and resource ('Upload a local image, audio or video as base64 to your private file library') and pins down the scope with a retention window. It also implicitly separates this tool from the batch family by warning against base64 in batch arguments, so an agent can place it without opening any 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?

It states what to do with the result ('Use this ID in uploads for Video/Edit/Upscale/Voice, or as a Movie asset'), how to handle retries ('Reuse idempotency_key'), and an explicit exclusion ('Never put base64 or a local path in batch arguments'). That is when-to-use, how-to-retry, and when-not-to-use in one compact block.

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