Skip to main content
Glama

Restore library asset

restore_asset
Idempotent

Restore a deleted library asset by its asset ID to return it to the library. Supply IDs from deletion or deleted-item listings; active assets stay unchanged.

Instructions

Bring one of your deleted library items back (the id from delete_asset or list_deleted); restoring an item that is not deleted changes nothing. It does not become a default again. Returns { ok }.

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

Input Schema

NameRequiredDescriptionDefault
assetIdYesLibrary asset id (from delete_asset)

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 / assetId / description
      Previous value: -"Library asset id (from remove_asset)"New value: +"Library asset id (from delete_asset)"
  3. Addedv0.19.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only supply idempotentHint=true; the description adds real behavioral context beyond that — the no-op case for already-live items, the side-effect clarification that a restored item does not regain default status, and the { ok } return shape. It omits permission/scope requirements, which keeps it from 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences with the core action and id source front-loaded, followed by the two behavioral caveats and the return value. Every clause carries information; nothing is redundant.

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?

For a one-parameter idempotent mutation with no output schema, the definition covers the action, id provenance, no-op behavior, the default-status side effect, and the response shape. Only auth or scope preconditions are unaddressed.

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% and the schema already says the assetId comes from delete_asset; the description adds value by also pointing to list_deleted as a source of ids, which helps the agent obtain a valid 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 a specific verb ('Bring ... back') on a specific resource ('deleted library items') and names the sibling tools that supply the id (delete_asset, list_deleted), so the agent can distinguish it from restore_clip/restore_project by resource type.

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?

Clear context: use it on items that are deleted, and it explicitly notes that calling it on a non-deleted item changes nothing — useful edge-case guidance. It does not spell out exclusions versus sibling restore_* tools, but those operate on different resources.

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