Skip to main content
Glama

Upload an image

upload_image

Upload a local image or base64 to 2DAI cloud drive for use as a reference in AI generation. Handles moderation and size limits.

Instructions

Upload a local image (or base64 bytes) to the 2DAI cloud drive so it can be used as a reference for generation ("use THIS image"). Free, but the file goes through the platform's moderation pass — NSFW beyond the account's ceiling is rejected. Max 10 MB; jpeg/png/webp. Paths must stay inside the working directory unless the server was started with TWODAI_ALLOW_ANY_PATH=1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoPath to the image file, relative to the working directory.
base64NoRaw base64 image bytes — alternative to path.
filenameNoFilename to store (defaults to the source name).
contentTypeNoMIME type when sending base64 (e.g. image/png).
targetFolderIdNoFile the upload directly into this folder (must be a folder you can write to); omit to land at the drive root.
erasedFromCreationIdNoRecord this upload as an ERASE (alpha) edit of an existing creation you own. Mutually exclusive with croppedFromCreationId.
croppedFromCreationIdNoRecord this upload as a CROP edit of an existing creation you own — description and moderation verdict are inherited.
Behavior5/5

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

The description discloses significant behavioral traits beyond annotations: moderation pass, NSFW rejection, 10 MB max, supported formats, and path restrictions. It also notes the free nature. Annotations only mark side effects and open-world, so this adds substantial value.

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?

The description is three sentences, front-loaded with the core purpose, followed by constraints. Every sentence provides useful information, no fluff.

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 tool with 7 parameters and no output schema, the description covers the main use case, constraints, and acceptance criteria. It does not explain the alpha edit params, but the schema already describes those. Overall adequate.

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%, so the baseline is 3. The description adds file-level constraints not in the schema (max size, formats) and clarifies the two input modes (path vs. base64). This supplements the schema without redundancy.

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?

The description clearly states the action ('Upload a local image... to the 2DAI cloud drive') and its purpose ('so it can be used as a reference for generation'), with a specific verb and resource. This distinguishes it from sibling generation 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?

Describes when to use the tool (to upload images for reference in generation) and provides implicit constraints (e.g., path restrictions, moderation). It does not explicitly name alternatives or exclusions, but the context is sufficiently clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/2DAICommunity/2dai-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server