Skip to main content
Glama

upload_image

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. Changed1 schema field changed
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "object",
      -  "character",
      -  "character portrait",
      -  "artwork"
      -]New value: +[
      +  "object",
      +  "character",
      +  "character portrait",
      +  "artwork",
      +  "tileset",
      +  "ui"
      +]
  2. Changed4 schema fields changed
    • 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"
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the mutation profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false), and the description adds real context: 'Free, but each call saves another copy' explains the non-idempotent consequence in practical terms, and the padding rule for non-standard sizes with downscaling above 1024px discloses a behavior no annotation or schema field carries.

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?

Three sentences, front-loaded with purpose, then alternatives, then the sizing/return behavior. The final sentence is long and packs several clauses, but each one (padding rule, 1024px cap, asset ID return) earns its place.

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 four-parameter upload tool with no output schema, the description covers the gaps that matter: cost/copy behavior, size normalization and padding, the 1024px downscale, and the fact that an asset ID is returned. Nothing an agent needs in order to call it correctly 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 the schema already documents url, image, type and remove_bg, including the 'give url or image, not both' constraint and the type default. The description does not add param-level meaning beyond restating the alternative inputs, so the baseline of 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?

The description opens with a specific verb and resource ('Save an image ... as a new image asset in their Voidless library') and scopes the input to images the user already has, explicitly contrasting with clean_up_sprite and upload_3d_model. It also names the downstream tools (edit_image, rotate_sprite, animate_sprite) that operate on the result, so an agent can place it precisely among siblings.

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?

It states when to use this tool versus named alternatives: clean_up_sprite for a messy sprite or a video on the way in, upload_3d_model for a 3D model. That is explicit routing guidance rather than implied context.

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.

Resources