Skip to main content
Glama

Delete a photo or video

media_delete
Destructive

Remove one uploaded file from storage now. Refused with 409 while a draft uses it, while it is part of the saved brand, or while a post that uses it is still queued or not yet confirmed.

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": {
      "id": "<id>"
    },
    "name": "media_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA media id from media_upload or media_list.
brandIdNoThe brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / brandId
      Added value: +{
      +  "description": "The brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.",
      +  "maxLength": 80,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false. The description adds valuable specific behavior: deletion is immediate ('now') and is refused with 409 while a draft uses the file, while it belongs to the saved brand, or while a post is queued or unconfirmed. It does not, however, explicitly state irreversibility or permissions required.

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 sentences, front-loaded with the core action and followed by precise refusal conditions. Every phrase earns its place with no redundancy.

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 simple, destructive two-parameter delete tool with annotations and full schema coverage, the description is largely complete: it states the action and the key failure modes. It could explicitly note that deletion is permanent and that brandId may be required when multiple brands exist, but those gaps are minor given the schema and 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 100%, so both the required 'id' and optional 'brandId' are fully described in the schema. The description adds no parameter-specific meaning beyond what the schema provides; the baseline of 3 is appropriate when the schema does the heavy lifting.

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?

The description states a specific verb ('Remove') and resource ('one uploaded file from storage'), making clear this deletes media rather than reading or uploading it. That distinguishes it from siblings like media_upload, media_list, and media_view without needing to name them.

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 description implies its use (delete a media file) and gives conditions under which deletion will fail with 409, which functions as partial when-not guidance. However, it does not explicitly state when to choose this tool over alternatives or mention prerequisites like needing a media id.

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.