Skip to main content
Glama

Add library asset

add_asset

Add a video, image, GIF, SVG, or sound from a public URL or upload ID to your library, or materialize a search result as an instance-shared asset.

Instructions

Add from exactly one source: a public url or an uploadId (video, image, GIF, SVG or sound) becomes one of your library uploads; a search_assets catalog / provider hit (provider + externalId) materializes one instance-shared copy (checksum verified, license recorded; not listed in your library). Returns { id, name, kind, mime, durationSec, duplicate, restored, owner } (the same file twice returns the existing item). setDefault on an upload makes it your default intro/outro for NEW projects only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNohttp(s) link to a video (MP4/MOV/WebM), image (PNG/JPG/WebP/GIF/SVG) or sound (MP3/M4A/AAC/WAV/OGG/FLAC); the server downloads it into your library (max 50 MB, 60 s)
nameNoLibrary name (url or uploadId; default: the file name). update_asset changes it later
tagsNoSearch tags (lowercase words; max 20)
colorNoiconify hits only: icon color as hex, e.g. #ffffff (default white)
providerNoA search_assets hit's provider (catalog or an enabled provider), together with externalId; materializes the instance-shared file instead of adding an upload
uploadIdNoAn existing upload id (from POST /api/upload) instead of a url
externalIdNoA search_assets hit's externalId, together with provider
setDefaultNoAlso make it your default intro or outro for new projects
imageSecondsNoHow long a still image shows as an intro/outro (1-10 s)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.51.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Addedv0.19.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only supply destructiveHint=false, so the description carries most of the load and does so well: it discloses idempotency (the same file twice returns the existing item), the duplicate/restored return fields, checksum verification and license recording for catalog copies, and that catalog copies are not listed in the library. The setDefault caveat (affects NEW projects only) is a genuinely non-obvious behavior. Auth requirements and rate limits are not covered, which keeps it off a 5.

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 source-exclusivity rule, then the return shape, then the setDefault caveat — a sensible ordering with no filler. It is one dense run-on sentence, though, which makes the return-field list and the parenthetical caveats harder to scan than they need to be.

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?

With nine optional parameters, three modes, and no output schema, the description covers the mode selection, the return fields, and idempotency, which is what an agent needs to call it correctly. The color (iconify) and imageSeconds paths are left entirely to the schema, a minor gap for a tool this flexible.

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 baseline is 3; the description still adds real meaning by explaining that url and uploadId are alternatives, that provider and externalId must be used together, and that setDefault only applies to uploads and only to new projects. It leaves color and imageSeconds entirely to the schema, so it is additive rather than compensating.

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 (add) and resource (library asset), then enumerates the two mutually exclusive sourcing paths: direct upload via url/uploadId versus catalog materialization via provider+externalId from search_assets. An agent can distinguish this from update_asset or search_assets 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 Guidelines4/5

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

"Add from exactly one source" gives a hard selection rule, and the description pairs each source with the parameters that trigger it (url or uploadId vs provider + externalId). It also names the sibling search_assets as the origin of catalog hits. It stops short of saying when not to use this tool, e.g. when an asset already exists and update_asset is the right call.

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

Deploy Server

Other Tools