Skip to main content
Glama

Update library asset

update_asset
Idempotent

Rename a library item, replace its tags, or set how long a still image displays (1–10 seconds). Applies only to your own items; shared catalog and provider items cannot be changed.

Instructions

Rename one of your own library items, replace its tags, or change how long a still image shows (deleted items too; shared catalog and provider items cannot be changed). Only labels change; nothing re-renders, except that a new image length applies on each project's next render. Returns { id, name, tags, durationSec, previousName }.

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": {
      "assetId": "<assetId>"
    },
    "name": "update_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name (1-120 chars)
tagsNoReplaces the tags (lowercase words; max 20); [] clears them
assetIdYesLibrary asset id (from search_assets)
imageSecondsNoSeconds a still image shows as an intro/outro (1-10); images only

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.7/5.0
Behavior5/5

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

Beyond the single idempotentHint annotation, it discloses the crucial side-effect profile: only labels change, nothing re-renders, and a new image length takes effect on each project's next render. It also states the return shape ({ id, name, tags, durationSec, previousName }), which no output schema provides.

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: capabilities first, eligibility and no-re-render caveats second, return shape last. Parentheticals carry exclusion rules without padding, and no sentence is redundant.

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?

For a 4-parameter mutation with no output schema and only an idempotency annotation, the description supplies everything an agent needs: what is editable, what is not, what side effects occur and when, and what the response contains.

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 coverage is 100%, so the schema already documents name, tags, assetId and imageSeconds. The description adds real meaning on top: it clarifies that tags are replaced wholesale rather than merged, and that imageSeconds affects render timing on the next render. Minor mismatch: the description's tags wording and the schema's maxItems differ, but the prose still adds value.

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 three specific operations (rename, replace tags, change still image duration) on a specific resource (one of your own library items), and immediately delimits scope: deleted items are included, shared catalog and provider items are not. This distinguishes it cleanly from sibling mutators like update_clip or update_layer_template.

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 explicit eligibility conditions — own items and deleted items yes, shared catalog and provider items no — which is the key when-to-use signal for this mutation. It does not name an alternative tool for the excluded cases, so it stops short of full routing guidance.

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