Skip to main content
Glama

upload_image

Save an existing image as a new Voidless asset so editing, rotation, and sprite animation tools can process it; optionally remove its background during import.

Instructions

Save an image the user already has (drawn, bought or made in another tool) as a new image asset in their Voidless library, so edit_image, rotate_sprite and animate_sprite can work on it. To clean up a messy sprite or a video on the way in use clean_up_sprite; for a 3D model, upload_3d_model. Free, but each call saves another copy. Pictures that are not a square of 32, 48, 64, 96, 128, 192, 256 or 384, 512, 768 or 1024 px are centred on the smallest that holds them with transparent padding (scaled down to 1024 if larger); returns the asset ID and says so.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upload_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) link to the image. Preferred: a long base64 string is easy to garble. Give url or image, not both
typeNoWhat the picture is (default 'character'), with the same meanings as generate_image's typecharacter
imageNoBase64 image instead of url (a data: prefix is stripped automatically). Give url or image, not both
remove_bgNoRemove the background on upload (default false). Set true for a sprite on a solid background

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.1
    • changedInput schema / properties / image / description
      Previous value: -"Base64 image instead of url (a data: prefix is stripped automatically)"New value: +"Base64 image instead of url (a data: prefix is stripped automatically). Give url or image, not both"
    • changedInput schema / properties / remove_bg / description
      Previous value: -"Remove the background on upload"New value: +"Remove the background on upload (default false). Set true for a sprite on a solid background"
    • addedInput schema / properties / type / description
      Added value: +"What the picture is (default 'character'), with the same meanings as generate_image's type"
    • changedInput schema / properties / url / description
      Previous value: -"Public http(s) link to the image. Use this when the image is online"New value: +"Public http(s) link to the image. Preferred: a long base64 string is easy to garble. Give url or image, not both"
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare non-read-only, non-idempotent, non-destructive; the description adds substantive behavior beyond that: every call stores another copy, images are centred on the smallest valid power-ish dimension with transparent padding, oversized images are scaled down to 1024, and the asset ID is returned. That padding/scaling side effect is exactly the kind of hidden transformation an agent needs warned about.

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?

Purpose and alternatives are front-loaded, then the sizing rule and return value. The long list of allowed pixel dimensions is dense but genuinely operational information; the only mild slack is the parenthetical numeric run, which could be compressed.

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?

No output schema, but the description still says what comes back (the asset ID) and how the saved image may have been transformed. For a four-parameter upload tool with full schema coverage, nothing material 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 url/image, type and remove_bg are already explained in the schema, including the 'give url or image, not both' rule. The description adds no parameter-specific meaning of its own, so the baseline 3 applies.

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 (save an image the user already has as a new image asset) plus the downstream payoff (so edit_image, rotate_sprite and animate_sprite can work on it). It explicitly separates itself from clean_up_sprite and upload_3d_model, so an agent can route without opening a sibling schema.

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?

Names two clear alternatives with the conditions that select them (messy sprite or video on the way in -> clean_up_sprite; 3D model -> upload_3d_model) and scopes inputs to images the user already has rather than generating. It never explicitly routes to generate_image for new images, so the boundary with that sibling is implied rather than stated.

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