Skip to main content
Glama

Delete image or file

delete_asset
DestructiveIdempotent

Deletes a picture or site file: off the site at once, to Recently deleted for 30 days (restore_uploads (area media)). list_assets (area media) {usage: true} marks unused ones unused: true. One in use — a page’s draft OR live version, the site icon, header, footer, menu, a product, design, post or redirect — is refused, naming where; one out of a draft is live until publish_site.

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

Input Schema

NameRequiredDescriptionDefault
siteIdYesSite id (from list_sites)
assetIdYesThe picture’s assetId from list_assets

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing soft-delete semantics: off the site at once but retained in Recently deleted for 30 days, plus the refusal conditions with a full list of in-use sources. Notes the subtlety that removing an asset from a draft does not free it until publish_site. The destructiveHint is qualified with a recovery path.

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 primary effect, then recovery path, then refusal conditions. The parenthetical sibling references and the '{usage: true} marks unused ones unused: true' phrase are slightly garbled and dense, but every sentence earns its place.

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 2-parameter mutation tool with full schema coverage and annotations, this definition supplies the key behavioral context: recovery window, refusal behavior, and the cross-tool workflow for checking usage before deleting. The only gap is the siteId parameter, which the agent can infer from its schema.

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 coverage is 100%, so the schema already documents both siteId (from list_sites) and assetId (from list_assets). The description confirms the assetId comes from list_assets, which adds marginal value. The siteId is not discussed in the description.

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 ('Deletes a picture or site file') and immediately bounds scope with the recovery path ('to Recently deleted for 30 days'). It clearly covers the asset domain, distinguishing it from generic siblings like delete_file and delete_page.

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?

Routes the agent to specific siblings: restore_uploads for recovery and list_assets {usage: true} to find unused assets before deleting. It also explains what happens when the asset is in use. It does not explain how to pick between delete_asset and delete_file, but the asset.File semantics are fairly clear from the purpose.

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.

Resources