Skip to main content
Glama

delete_image

DestructiveIdempotent

Delete an image stored for a website, freeing the space it takes against the account's storage. Give the address list_images gave you. This refuses while a page still shows the image, because deleting it would leave a broken picture on a live site; edit the page first, or pass force to delete it anyway. No page is ever edited for you.

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": {
      "site_id": "<site_id>",
      "url": "<url>"
    },
    "name": "delete_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe image address, exactly as list_images gave it.
forceNoDelete even though a page still shows the image. Ask the owner before passing this.
site_idYesFrom list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds real behavioral context beyond them: storage-quota accounting, a referential-integrity guard that blocks deletion of in-use images, the requirement of owner consent before overriding with force, and the guarantee that no page is edited as a side effect. That last point is exactly the cascade question an agent needs answered for a destructive tool.

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?

Four sentences, front-loaded with the purpose and consequence, and each one carries information an agent needs. There is mild overlap with the schema on url and force wording, which keeps it just short of fully economical.

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 three-parameter tool with no output schema and rich annotations, the description covers purpose, precondition, failure mode, override path, and side-effect scope. Nothing material an agent needs to invoke it safely is missing.

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 description coverage is 100%, so all three parameters are already documented, including force's semantics and the 'ask the owner' caution. The description reiterates url provenance and force, adding only the framing of the guard that force bypasses, so baseline 3 applies. The extra sentence 'No page is ever edited for you' is scope clarification rather than parameter meaning.

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 ("Delete an image stored for a website") plus a concrete consequence ("freeing the space it takes against the account's storage"), which separates it cleanly from list_images and add_image. An agent knows exactly what this does without opening the schema.

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?

Gives an explicit precondition ("Give the address list_images gave you"), an explicit refusal condition ("refuses while a page still shows the image"), and two named remedies: edit the page first, or pass force. The when-not path is stated rather than left to inference.

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.