Skip to main content
Glama

update an asset

assets_update
Destructive

Modify an existing asset's name or visibility, or correct stored media metadata by ID; send only fields to change so omitted values remain.

Instructions

Change an existing asset's name or visibility, or correct its stored media metadata (durationSeconds, size, format, width, height), by id. Send only the fields the user asked to change: omitted fields keep their values and sent ones overwrite the stored values, so read the asset with assets_get first if the old values may be needed. Metadata fields rewrite the asset record, not the media file, and sync. reads the stored durationSeconds in later checks, such as the plan length limit for a link-imported video and dubbing review intervals, so send metadata only with a value you know is right. Not for adding new media (use assets_create) or renaming a project (use projects_rename when available). Every update acts as a user, so an API key with no owner gets 422. Name or visibility changes need the asset's creator or a signed-in organization admin or owner; an API key acts as a plain member, so only on assets its owner created. A metadata-only request works on any asset the caller can read, including other members' assets, so change those only on the user's explicit request. 403 means you can read the asset but may not change it; 404 means it does not exist, was deleted or is not visible to you. Returns the updated asset record, including id, name, visibility, url, the media fields, thumbnailUrl, userId, createdAt and updatedAt, but not proxyPath; use assets_get for that.

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>"
    },
    "name": "assets_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAsset id (UUID) from assets_list or assets_get.
nameNoNew display name; must not be empty.
sizeNoCorrected file size in bytes, a positive whole number. Send only a verified correction.
widthNoCorrected width in pixels, a positive whole number. Send only a verified correction.
formatNoCorrected file format or extension, such as mp4 or wav; must not be empty. Send only a verified correction.
heightNoCorrected height in pixels, a positive whole number. Send only a verified correction.
visibilityNoUSER: visible to its creator, to everyone in the organization when the asset is attached to an ORGANIZATION-visible project, and to organization API keys with no owner. ORGANIZATION: visible to everyone in the organization.
durationSecondsNoCorrected media length in seconds, greater than 0. Later duration checks read this value, so send only a length you have verified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.2.4
    • changedInput schema / properties / durationSeconds / description
      Previous value: -"Media length in seconds, when known."New value: +"Corrected media length in seconds, greater than 0. Later duration checks read this value, so send only a length you have verified."
    • changedInput schema / properties / format / description
      Previous value: -"File format or extension, such as mp4 or wav, when known."New value: +"Corrected file format or extension, such as mp4 or wav; must not be empty. Send only a verified correction."
    • changedInput schema / properties / height / description
      Previous value: -"Video or image height in pixels, when known."New value: +"Corrected height in pixels, a positive whole number. Send only a verified correction."
    • changedInput schema / properties / id / description
      Previous value: -"Asset id from assets_list."New value: +"Asset id (UUID) from assets_list or assets_get."
    • changedInput schema / properties / name / description
      Previous value: -"New display name."New value: +"New display name; must not be empty."
    • changedInput schema / properties / size / description
      Previous value: -"File size in bytes, when known."New value: +"Corrected file size in bytes, a positive whole number. Send only a verified correction."
    • changedInput schema / properties / visibility / description
      Previous value: -"USER keeps it private to you; ORGANIZATION shares it with your team."New value: +"USER: visible to its creator, to everyone in the organization when the asset is attached to an ORGANIZATION-visible project, and to organization API keys with no owner. ORGANIZATION: visible to everyone in the organization."
    • changedInput schema / properties / width / description
      Previous value: -"Video or image width in pixels, when known."New value: +"Corrected width in pixels, a positive whole number. Send only a verified correction."
  2. Changed8 schema fields changed
    • addedInput schema / properties / durationSeconds / description
      Added value: +"Media length in seconds, when known."
    • addedInput schema / properties / format / description
      Added value: +"File format or extension, such as mp4 or wav, when known."
    • addedInput schema / properties / height / description
      Added value: +"Video or image height in pixels, when known."
    • changedInput schema / properties / id / description
      Previous value: -"Asset ID"New value: +"Asset id from assets_list."
    • addedInput schema / properties / name / description
      Added value: +"New display name."
    • addedInput schema / properties / size / description
      Added value: +"File size in bytes, when known."
    • addedInput schema / properties / visibility / description
      Added value: +"USER keeps it private to you; ORGANIZATION shares it with your team."
    • addedInput schema / properties / width / description
      Added value: +"Video or image width in pixels, when known."
  3. Changed2 schema fields changedv0.1.5
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
  4. First observedv0.1.4

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety bar is partly cleared; the description nonetheless adds substantial context: omitted fields are preserved while sent fields overwrite, metadata rewrites the record and not the media file, downstream duration checks read durationSeconds, and 403/404/422 error meanings. The only gap is that the overwrite semantics read like a PUT-style idempotent operation while the annotation says idempotentHint=false, which is not a contradiction but is left unexplained.

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?

Purpose is front-loaded in the first clause, followed by the write-semantics rule, then auth, then error codes, then return shape — a sensible order. It is dense and long for a single paragraph, and the return-value inventory (including the proxyPath caveat) is somewhat padded given there is no output schema to contrast against.

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 destructive mutation with no output schema, the description covers what changes, what is preserved, permission requirements per field group, API-key limitations, distinguishing 403 vs 404 vs 422, and the returned record's contents. An agent has everything needed to invoke it safely without further lookups.

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 coverage is 100%, so every parameter is already documented in the schema, and the description mostly restates that grouping (name/visibility vs. the media metadata set). It does add one piece of cross-field meaning the schema lacks: that durationSeconds is consumed later by plan-length limits and dubbing intervals, which justifies the caution not to guess. That is a modest addition over an already-complete schema, so the baseline 3 holds.

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 and resource plus the exact editable surface: name, visibility, and stored media metadata fields, all keyed by id. It explicitly distinguishes itself from assets_create (adding media), projects_rename (renaming projects), and assets_get (reading proxyPath), so an agent can route without opening sibling schemas.

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?

Gives explicit when-to-use and when-not-to-use guidance with named alternatives, plus a prerequisite workflow: read with assets_get first if old values may be needed. It also sets a consent rule ('change those only on the user's explicit request') for metadata-only edits on other members' assets, which is a real branching decision an agent needs.

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