Skip to main content
Glama

Delete asset

delete_asset
Destructive

Delete a workspace asset for good. Frames that show the image then render it empty; text in a deleted font falls back to Google Fonts of the same family, or to the default font. A workspace admin or the asset's uploader only. The asset is looked up in fileId's workspace when given, else workspace, else the default workspace.

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": {
      "asset": "<asset>"
    },
    "name": "delete_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesThe asset's id (list_assets) or its /api/assets/… URL.
fileIdNoThe file the assets are for: its workspace's (a file shows the fonts and images of its own workspace).
workspaceNoThe workspace whose assets to use: its id or name (whoami lists them). Default: fileId's workspace, else the default workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description goes well beyond them: it discloses irreversibility ('for good'), concrete downstream consequences (frames render empty, deleted fonts fall back to Google Fonts or the default), and an authorization requirement. That is exactly the behavioral context an agent needs before a destructive call.

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 sentences, each doing distinct work: permanence, downstream effects, then authorization and resolution. Irreversibility is front-loaded and no sentence 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?

For a destructive, non-open-world tool with no output schema and full schema coverage, the description covers everything an agent needs: permanence, side effects, permissions, and lookup precedence. Nothing material is left to inference.

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 schema already documents all three parameters and their defaults. The description nevertheless adds cross-parameter meaning by spelling out the precedence chain for locating the asset (fileId's workspace, else workspace, else the default), which the schema only states per-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 ('Delete a workspace asset') and immediately qualifies it as permanent, which separates it from reversible siblings like delete_nodes or update_asset. An agent can identify the operation without opening the schema.

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?

Gives a clear permitting condition (workspace admin or the asset's uploader) and explains the workspace resolution chain, so an agent knows whether and where it can call this. It stops short of naming a sibling alternative for non-permanent removal or for deleting nodes rather than assets.

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.