Skip to main content
Glama

media_delete

Destructive

Deletes a file from the media library permanently, to clean up after yourself: an upload that turned out wrong, or a file the user no longer wants stored (it frees the storage it counted against). The file must be unused - one any Riddle still shows is refused with a message naming those Riddles, since deleting it would leave a broken image behind in a live Riddle; remove it there first (riddle_builder_update, then riddle_publish so the change is live) and delete afterwards. Unused is a property of the file across the whole ACCOUNT, not of one Riddle: several Riddles can use it and any one of them keeps it alive, and a file the Creator lists as in use cannot be forced out from here either. Not reversible, no undo, and the id is not reused, so anything still pointing at the file stops resolving - ask the user before calling this. Returns {deleted: true, mediaId, name, type, size}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mediaIdYesThe media library id of the file to delete - the "mediaId" the upload response returned, or the id shown for the file in the Creator's media library.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description discloses permanence, non-reversibility, no id reuse, storage freeing, account-wide usage semantics, refusal behavior naming affected Riddles, and unresolved references. This is rich behavioral context that materially helps an agent decide and call safely.

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?

The description is long but every sentence carries essential safety, usage, or workflow information. It front-loads the core action and cleanup purpose, then layers conditions and consequences without redundancy.

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 tool with one parameter and no output schema, the description is fully complete: it covers purpose, prerequisites, failure behavior, irreversibility, return shape, and user consent. There are no meaningful gaps.

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?

The input schema already documents mediaId with a clear description, and schema description coverage is 100%. The tool description does not add much parameter-specific detail, but none is needed since the schema covers the single parameter well.

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 uses a specific verb and resource: 'Deletes a file from the media library permanently.' It also clarifies the intended cleanup use case and distinguishes itself from Riddle-related operations by explaining that the file must be unused and that Riddle references block deletion.

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 explicitly says when to use the tool (cleanup after a bad upload or unneeded file), when notto use it (file still used by any Riddle), and gives the exact alternative workflow (riddle_builder_update, then riddle_publish) before deletion. It even advises asking the user first because deletion is permanent.

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