Skip to main content
Glama

upload_asset

Uploads base64-encoded file content to an existing Hedra asset using its asset ID and original filename, enabling updates for video, image, or audio workflows.

Instructions

Uploads a file to an existing asset. Provide file content as base64 encoded string.

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": {
      "id": "<id>",
      "file_base64": "<file_base64>",
      "filename": "<filename>"
    },
    "name": "upload_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAsset ID to upload to
filenameYesOriginal filename with extension
file_base64YesBase64 encoded file content

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does not say whether an upload replaces existing asset content or adds a version, what size/type limits apply, what permissions are needed, or what the response contains — all material for a mutation tool.

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 short sentences with the verb front-loaded and zero filler; nothing redundant or padded.

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

Completeness2/5

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

For a no-annotation, no-output-schema write tool, the definition omits replacement semantics, error behavior, and limits. The schema covers the inputs, but the surrounding behavior an agent needs before uploading blindly is absent.

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?

All three parameters are fully documented in the schema (100% coverage), so the baseline is 3. The description's only added detail, base64 encoding of file content, merely restates the schema's own description of file_base64.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb (uploads) and resource (a file into an existing asset), and the word 'existing' implicitly separates it from create_asset. It does not explicitly name or contrast a sibling, so it stops short of a 5.

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?

Implied usage only: 'existing asset' signals that an asset ID must already exist, which hints that create_asset is a prerequisite. There is no explicit when-to-use, when-not-to-use, or named alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.