Skip to main content
Glama

Restore clip

restore_clip
Idempotent

Restore a deleted or replaced clip, keeping its original number unless a live clip has taken it; if it never finished, rerender it via the returned needsRerender flag.

Instructions

Bring back a deleted clip or one a re-analyze replaced (list_deleted or get_project → replacedClips); it keeps its number unless a live clip took it meanwhile, else it goes to the end of the project's clips. Returns { changed, status, needsRerender }; needsRerender means it never finished, so call rerender_clip.

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": "restore_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesClip id (from list_deleted or get_project → replacedClips)

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. Changed1 schema field changedv0.26.3
    • changedInput schema / properties / id / description
      Previous value: -"Clip id (from get_project → replacedClips)"New value: +"Clip id (from list_deleted or get_project → replacedClips)"
  3. Addedv0.7.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the lone idempotentHint annotation, the description discloses the non-obvious side effect that the clip keeps its original number unless a live clip has taken it, in which case it is appended to the end. It also names the return fields and explains the needsRerender flag plus the follow-up call, which annotations cannot convey.

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?

It is a single dense sentence with the core action front-loaded and no filler; the parenthetical source hint and the return-value clause both earn their place. It reads slightly run-on, but nothing 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?

With no output schema present, the description carries the return contract itself ({ changed, status, needsRerender }) and explains the one field that drives an agent's next action. For a one-parameter restore tool this leaves no material gap.

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% and the single id parameter is already documented as coming from list_deleted or get_project → replacedClips, so the description largely repeats the schema. The id-collision behavior adds a little context about what that id means, but not much meaning beyond the schema itself.

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?

The description opens with a specific verb and resource ('Bring back a deleted clip or one a re-analyze replaced') and immediately scopes it to two distinct recovery cases, which cleanly separates it from siblings like restore_asset or restore_project that operate on other object types.

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?

It tells the agent exactly where the required id comes from ('list_deleted or get_project → replacedClips') and gives a conditional next step ('needsRerender means... so call rerender_clip'). What it lacks is any explicit statement of when not to use it or how it differs from restoring other entity types.

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