Skip to main content
Glama

Delete an upload

delete_upload
DestructiveIdempotent

Delete one of your YourImageShare uploads by id - the file and its links stop working immediately. Get the id from upload_image's response or from list_uploads. Errors (not found, wrong owner) come back as a normal tool error.

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": "delete_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe upload id to delete.

Output Schema

NameRequiredDescriptionDefault
idYes
deletedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds substance beyond them: the immediate breakage of the file and its links (the concrete consequence of destruction) and the fact that not-found and wrong-owner failures surface as normal tool errors rather than partial successes. Ownership/permission requirements are only implied by 'your' and the wrong-owner error case, not stated outright.

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 tight sentences with no filler: the action and its irreversible effect come first, then the id source, then error behavior. Every clause carries information the agent needs.

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 single-parameter destructive tool with annotations and an output schema already present, the description covers the remaining gaps an agent needs: how to get a valid id, what deletion actually breaks, and how failures are reported.

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% with only one parameter, so the schema already defines `id`; the description adds real value by telling the agent where to source a valid id from (upload_image's response or list_uploads). That is meaningfully more than the schema's bare 'The upload id to delete.'

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?

Names a specific verb and resource ('Delete one of your YourImageShare uploads by `id`') and states the concrete effect: the file and its links stop working immediately. The delete verb plus the note that ids come from upload_image or list_uploads makes it clearly distinct from the sibling read/update tools.

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 a clear precondition and where to obtain the required input, naming two specific sibling sources (upload_image's response, list_uploads). It does not say when not to delete, e.g. that update_upload is the route for merely modifying an upload, so it stops short of full alternative routing.

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.