Skip to main content
Glama

Edit asset

edit_asset
Destructive

Run pipeline nodes over ONE video, image, or audio file the account already has and get the edited file back: captions, an upscale, background removal, lipsync, a crop, an overlay, a cutaway, a thumbnail, a trim, or any other transform in list_node_types. To put music under a video, use assemble_video with musicPrompt instead. Operations run in order, each fed the output of the one before, so "caption it and upscale it" is one call with two operations; a Transcribe stage is added wherever an operation needs a transcript. Check a node's config and ports with get_node_type first. A setting the node does not define, or a value outside what it offers, is refused with the valid ones listed. The source, and any url given as an input, must come from list_assets or a run's outputs in get_run. Renders in the background and spends credits: poll get_run with the returned pipelineId and runId. The same edit asked for again within a few minutes returns the render already started (repeat: true) rather than charging for another; to render it a second time on purpose, pass a new requestId. Needs the pipelines:run and pipelines:write scopes.

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": {
      "sourceUrl": "<sourceUrl>",
      "operations": "<operations>"
    },
    "name": "edit_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoWhat to call the render, e.g. "Captioned short".
requestIdNoAny id you choose for this one request. A call with an id that already started a render returns that render; a new id renders again even when everything else is identical.
sourceUrlYesThe asset to edit, from list_assets or a run output.
operationsYesThe nodes to run over the asset, in order.
callbackUrlNoAn https URL Treza POSTs the finished run to, once, when it ends (success, partial, error or cancelled), so an automation can wait for the render instead of polling get_run. The body is the JSON get_run returns for the run, sent with the headers X-Treza-Event: run.finished and X-Treza-Delivery: <runId>. It must be https on the default port and reach a public address; a URL that does not is refused before anything runs or is charged. Each attempt waits 10 seconds for a 2xx, and a timeout, 408, 429 or 5xx is retried twice more.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / callbackUrl
      Added value: +{
      +  "description": "An https URL Treza POSTs the finished run to, once, when it ends (success, partial, error or cancelled), so an automation can wait for the render instead of polling get_run. The body is the JSON get_run returns for the run, sent with the headers X-Treza-Event: run.finished and X-Treza-Delivery: <runId>. It must be https on the default port and reach a public address; a URL that does not is refused before anything runs or is charged. Each attempt waits 10 seconds for a 2xx, and a timeout, 408, 429 or 5xx is retried twice more.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / requestId
      Added value: +{
      +  "description": "Any id you choose for this one request. A call with an id that already started a render returns that render; a new id renders again even when everything else is identical.",
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations: renders in the background and spends credits, must be polled via get_run with the returned pipelineId/runId, invalid config is refused with valid values listed, repeat calls within a few minutes return the existing render (repeat: true) instead of charging, and pipelines:run/pipelines:write scopes are required. The short-window dedupe sits alongside idempotentHint=false but is consistent with charges recurring on genuinely new requests, so no contradiction.

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 core action and then packed with distinct, non-redundant facts; almost every sentence carries a separate constraint (ordering, validation, sourcing, polling, dedupe, scopes). It is a single dense block that would scan better as short grouped clauses, but there is little filler to cut.

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 multi-step, credit-spending, asynchronous render tool with no output schema, the description supplies everything an agent needs: what it produces, how to retrieve results (get_run polling or callbackUrl), cost/auth implications, validation failure behavior, and the idempotency escape hatch. No material gap remains.

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 baseline is 3; the description adds real meaning beyond it by explaining that operations run in order, each fed the previous output, that multiple edits are one call, and that a Transcribe stage is injected when a node needs a transcript. requestId's dedupe semantics are also restated in behavioral terms rather than just as an id field.

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 ("Run pipeline nodes over ONE video, image, or audio file ... and get the edited file back") and enumerates concrete transforms (captions, upscale, background removal, lipsync, crop, overlay, cutaway, thumbnail, trim). It also names the sibling it is not for music (assemble_video with musicPrompt), so an agent can disambiguate without opening another 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?

Gives explicit routing: use assemble_video with musicPrompt to put music under a video; call get_node_type first to check config and ports; source and input urls must come from list_assets or get_run outputs. It also covers the when-not case for re-rendering (pass a new requestId only to render deliberately again).

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.