Skip to main content
Glama

Delete media

delete_media
DestructiveIdempotent

Delete a media item from the media library. Deletion cannot be undone. Media still used in a draft or publishing task cannot be deleted (409 MAIN_MEDIA_IN_USE). Content already published on platforms is not affected. (Required scope: cd.media.write)

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": {
      "mediaId": "<mediaId>",
      "confirm": "<confirm>"
    },
    "name": "delete_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYestrue = the user has approved this specific action. Without it the request is rejected with 409 AGENT_USER_CONFIRMATION_REQUIRED.
mediaIdYes
workspaceIdNoOptional: id of the workspace to operate on (look it up with list_workspaces); if omitted, the default personal workspace is used. A developer API key can only use the workspace it is bound to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new context beyond that: irreversibility, the 409 MAIN_MEDIA_IN_USE conflict condition, the boundary that published platform content is not affected, and the required API scope. Return payload behavior is not described, but with no output schema and the main hazards covered, this is strong.

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?

Four short sentences, front-loaded with the action and the irreversibility warning, then failure conditions, then the scope requirement. Every sentence carries distinct operational information with no repetition of annotations.

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 destructive, non-open-world tool with no output schema, the description covers consequences, blocking preconditions, error codes, and auth scope — everything an agent needs to decide and call safely. Only the response shape and idempotency restatement are absent, and idempotency is already in annotations.

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 67%, with both confirm and workspaceId already documented in the schema, including the 409 AGENT_USER_CONFIRMATION_REQUIRED consequence. The description adds no parameter-level meaning beyond what is in the schema; mediaId remains undocumented in both places, though its intent is self-evident from the tool name.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 media item from the media library') and implicitly scopes it against siblings by noting that content already published on platforms is unaffected, which separates it from delete_published_target. It does not name any sibling outright, so differentiation is inferred rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The prerequisite conditions for a successful call are stated (not in use by a draft or publishing task, required scope cd.media.write), which tells the agent when the tool will work. However, there is no explicit guidance on when to choose this over delete_draft, delete_group, or delete_published_target, leaving alternatives to inference.

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.