Skip to main content
Glama

Delete a photo or video

delete_media
Destructive

Use this only when the user clearly asks to delete one of their photos, videos or lip syncs, or to remove the last extension of a video. Deleting can't be undone and gives no credits back, so name what will go and get the user's yes first. Pass exactly one of photo_id, video_id or lip_sync_id. With video_id and last_extension_only: true, only the last part added with extend_video is removed and the video goes back to its previous length; that rebuilds the video, so it can take up to a minute. Something still being made can't be deleted.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delete_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
photo_idNoA photo_id. Videos made from the photo are kept.
video_idNoA video_id. Its extensions go with it; its lip syncs are kept.
lip_sync_idNoThe id of a lip sync (kind lip_sync in list_media or get_generation).
last_extension_onlyNoWith video_id: remove only the last extension.

Output Schema

NameRequiredDescriptionDefault
okNoPresent only on a refusal: the summary says why, and what the user can do.
urlNo
deletedNo
summaryYes
photo_idNo
video_idNo
view_urlNo
error_codeNoPresent only on a refusal.
lip_sync_idNo
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true, so the safety label is covered; the description goes further by disclosing that deletion is irreversible, that no credits are returned, that the extension rollback rebuilds the video and can take up to a minute, and that in-progress items are rejected. It also spells out cascade semantics for derived assets via the parameter docs.

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?

The gating condition and irreversibility warning are front-loaded, and the parameter rules follow in a logical order. It is dense but nearly every sentence carries a distinct constraint; a small amount of tightening is possible but nothing is filler.

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 four-parameter tool this covers the decision to call, the required user confirmation, the side effects and credit implications, the timing of the rebuild path, and the state precondition. Return values need no explanation because an output schema exists.

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 baseline is 3, but the description adds a real constraint not enforced by the schema: exactly one of photo_id, video_id or lip_sync_id must be passed, even though the schema marks nothing required and has no oneOf. It also explains the interaction between video_id and last_extension_only: true.

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 and resource set: delete a photo, video or lip sync, or remove a video's last extension. It also separates this from neighbours like update_media and list_media by framing it as destructive removal, and it names extend_video as the operation whose output it can roll back.

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?

It gives an explicit gating condition ('only when the user clearly asks to delete'), an exclusion ('something still being made can't be deleted'), and a required confirmation step before calling. The last-extension case is scoped to videos made with extend_video, which is the precise alternative path an agent needs.

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