Skip to main content
Glama

Delete library asset

delete_asset
Destructive

Remove an uploaded asset from your library and defaults, moving it to Deleted while existing projects and clips keep rendering. Check usage first; undo later with restore.

Instructions

Delete one of your uploads: it leaves the library and your defaults and goes to Deleted. Projects and clips already using it keep rendering with it. Undo with restore_asset (list_deleted says how long it is kept); check asset_usage first. 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": "delete_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetIdYesLibrary asset id (from search_assets)

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.26.3

TDQS

A4.3/5.0
Behavior3/5

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

The description goes well beyond the bare destructiveHint=true annotation by disclosing that this is a soft delete into Deleted, that defaults are cleared, and that projects/clips already referencing the asset keep rendering. However, the guidance given is mostly routing (check usage, undo path) and the retention detail is deferred to list_deleted rather than stated, so the behavioral picture is strong but not fully self-contained.

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 compact sentences, each front-loading the most important fact in order: what happens, what survives, how to recover. No filler or repetition of the title.

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 single-parameter soft-delete tool with no output schema, the description covers outcome, side effects, recovery, and even the { ok } return shape. Nothing an agent needs to invoke it correctly is missing.

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?

Only one parameter with 100% schema coverage, and the schema already documents assetId as a library asset id sourced from search_assets. The description adds no new meaning about the id format or behavior, so baseline 3 applies.

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 ("Delete one of your uploads") and immediately bounds the scope with the destination ("goes to Deleted") and the retention of existing usage. An agent can distinguish this from a hard purge without consulting any other tool.

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?

Explicitly routes the agent: check asset_usage first, undo via restore_asset, and consult list_deleted for retention. The when-to-use prerequisite and the recovery path are both named directly rather than inferred.

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