Skip to main content
Glama
imagekit-mcp-server

imagekit-mcp-server

by aiconnai

upload_base64_file

Upload base64-encoded file content to ImageKit as a named media asset; optionally set folder, tags, privacy, overwrite, and custom metadata.

Instructions

Upload a file to ImageKit from base64 encoded data

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": {
      "base64Data": "<base64Data>",
      "fileName": "<fileName>"
    },
    "name": "upload_base64_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTags to associate with the file
folderNoDestination folder path/
fileNameYesName for the uploaded file
base64DataYesBase64 encoded file content (with or without data URI prefix)
isPrivateFileNoWhether file should be private
overwriteFileNoWhether to overwrite existing file with same name
customMetadataNoCustom metadata key-value pairs
customCoordinatesNoCustom focus coordinates for cropping (x,y,width,height)
useUniqueFileNameNoGenerate unique filename to avoid conflicts

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 provided, so the description carries the full burden of behavioral disclosure. It says 'upload' but omits whether authentication is required, what happens on name collisions, overwrite semantics, size limits, or what a successful upload returns.

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?

The description is a single front-loaded sentence with no unnecessary wording. It is appropriately sized for a short tool description, though its brevity is also the source of other gaps.

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

Completeness2/5

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

The tool has nine parameters, nested custom metadata, no annotations, and no output schema. While the schema documents parameters well, the description is insufficient for a mutation tool with no annotation coverage: it should cover overwrite behavior, privacy implications, and return expectations at minimum.

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 parameter meanings are already fully documented in the schema. The description adds no parameter-level detail beyond the input format, which is consistent with the baseline for high schema coverage.

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?

The description states a specific verb and resource ('Upload a file to ImageKit') plus the input format ('from base64 encoded data'), which distinguishes it from URL-based and likely multipart-based siblings. It does not explicitly name sibling alternatives, but the source format makes the distinction clear.

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?

The description provides no explicit guidance on when to use this tool versus upload_file or upload_file_from_url. The source format is mentioned, but there is no stated preference, prerequisite, or exclusion condition.

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