Skip to main content
Glama

Discard your upload

discard_upload
DestructiveIdempotent

Move an image you uploaded through this connection to the bin. Only for images that no page uses, in a draft, live, in the bin or in an earlier version, and that no person or other connection has changed; a refusal lists where it is used. A person can restore it from the bin.

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>"
    },
    "name": "discard_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
mediaIdYesThe id upload_media returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / mediaId / description
      Added value: +"The id upload_media returned."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the destructive/idempotent annotations by clarifying that deletion is a move to the bin, that a person can restore it, and that a refusal enumerates where the image is used. This adds recoverability and failure-mode context the annotations cannot express.

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?

Two sentences with the purpose front-loaded, followed by eligibility and failure behavior. The middle clause ('in a draft, live, in the bin or in an earlier version') is dense and slightly awkward to parse, but no wording is truly wasted.

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 single-parameter destructive tool with annotations present, this covers purpose, preconditions, refusal behavior and reversibility. The only gap is that a successful call's result is never described, which matters slightly given there is no output schema.

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% and mediaId already documents itself as 'The id upload_media returned.' The description reinforces the ownership scope of that id but adds no new syntax or format detail, so the baseline 3 applies.

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?

States a specific verb and resource with scope: 'Move an image you uploaded through this connection to the bin.' The phrase 'you uploaded through this connection' scopes it away from discard_draft and other siblings without needing to name them, and the mediaId parameter ties it back to upload_media.

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

Usage Guidelines4/5

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

Gives explicit eligibility conditions: only images no page uses (in draft, live, bin, or an earlier version) and that no person or other connection has changed. It also explains the refusal path. It stops short of naming an alternative tool for images that fail those conditions, so it is short of a full 5.

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