Skip to main content
Glama

delete_media

Destructive

Delete a media item from the workspace media library.

This removes the Firestore record. The file in storage may still exist but will no longer appear in the media library. media_ids deletes up to 50 in one call, each answered in media; one still on a post answers media_in_use with its usedInPosts and the rest still go.

Args: media_id: The media item ID to delete. workspace_id: Workspace ID or name. Optional if user has only one workspace. media_ids: Several media items to delete, instead of media_id.

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
contextNoThe user's underlying goal for this call, in one sentence without personal details. Used for product analytics only.
media_idNo
llm_modelNoThe model identifier of the calling assistant, or "unknown". Used for product analytics only.
media_idsNo
workspace_idNo
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Output Schema

NameRequiredDescriptionDefault
_mcp_instructionsNoServer-issued metadata for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request."New value: +"The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics."
  2. Changed5 schema fields changed
    • addedInput schema / properties / media_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / media_id / default
      Added value: +null
    • removedInput schema / properties / media_id / type
      Removed value: -"string"
    • addedInput schema / properties / media_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Media Ids"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "media_id"
      -]New value: +[]
  3. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "media_id",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "media_id"
      +]
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Adds substantive behavior beyond destructiveHint=true: it discloses that only the Firestore record is removed while the stored file may persist, that batches are capped at 50, and that in-use items return media_in_use with usedInPosts while the rest still delete. It does not state whether deletion is reversible or what permissions are required, which keeps it from a 5.

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 destructive scope and storage caveat are front-loaded, followed by batch behavior and argument notes. Every sentence carries new information with no filler, despite the slightly clipped phrasing of 'the rest still go.'

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, batch-capable tool this covers side effects, batch limits, partial-failure behavior, and workspace scoping, and since an output schema exists it need not explain return shapes. The notable gap is the absence of any irreversibility or permission statement for a destructive operation.

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 50%, and the description compensates by explaining the semantics of the three undocumented business parameters: media_id as a single ID, media_ids as a batch alternative with a 50-item limit, and workspace_id as optional for single-workspace users. The remaining analytics parameters are documented in the schema itself.

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 workspace media library' — which is unambiguous and separable from siblings like delete_post or add_media. It stops short of explicitly contrasting itself with those siblings, so it is clear but not fully differentiated.

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?

Gives useful parameter-level direction ('workspace_id ... optional if user has only one workspace'; 'media_ids ... instead of media_id') but no tool-level guidance on when to choose this over delete_post or how it interacts with post deletion. Usage is implied rather than stated.

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.