Skip to main content
Glama
imagekit-mcp-server

imagekit-mcp-server

by aiconnai

delete_file

Permanently removes a file from your ImageKit media library using its unique file ID, so you can clean up unused or outdated assets.

Instructions

Delete a file from ImageKit

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": {
      "fileId": "<fileId>"
    },
    "name": "delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe unique ID of the file to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing about irreversibility, whether the deletion propagates to CDN or URL endpoints, required permissions, or error behavior for a missing fileId. "Delete" implies mutation and likely permanence, but the definition never confirms that.

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?

A single short sentence with no filler, front-loaded with the verb and resource. It is efficient but borders on under-specification given the destructive nature of the operation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter tool with a fully documented schema, the description is barely adequate: it names the operation but omits the destructive-operation context an agent needs. With no annotations and no output schema, a sentence on irreversibility and permissions would close the gap.

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 schema has one parameter with 100% description coverage ("The unique ID of the file to delete"), so the schema already documents everything needed. The description adds no format hints, no ID-source guidance, and no constraint details beyond that baseline.

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 file") and scopes it to ImageKit, which is enough to distinguish it from siblings like upload_file or get_file_details. It does not, however, contrast itself with delete_folder or explain the file-vs-folder distinction.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisite or permission note, and no mention of alternatives such as delete_folder for folder removal or move_file if the intent is relocation. The agent must infer all routing decisions from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.