Skip to main content
Glama

Upload an image

upload_image

Upload a PNG or JPEG (at most 4 MB) to this InkChamps account and get back an s3Key to pass in a book order — a character's picture (characterDetails[].referenceImage), a character sheet (characterReferenceSheet), a page template (pageTemplateImage), a coloring book's style template (styleReferenceImage) or cover art (frontCoverImage / backCoverImage). Upload once and reuse the key in as many orders as you like. Costs no credits. Every image field also accepts the picture inline as data, so this step is optional. Each image must be under 4 MB (a request limit), which for a print-size photo or painting means JPEG; PNG is fine when it fits. A cover side must have the shape of the book's cover side (the trim plus KDP's 0.125in bleed on its outer edges, e.g. 8.625x11.25in for 8.5x11) at 300 dpi or more (2588x3375 pixels for 8.5x11); see frontCoverImage on create_cover_photo for every trim.

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": {
      "purpose": "<purpose>",
      "data": "<data>"
    },
    "name": "upload_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesThe PNG or JPEG bytes, base64, optionally as a data: URI.
purposeYesWhere the key will be used: character (one character's picture in characterDetails), character_sheet (characterReferenceSheet), page_template (pageTemplateImage), style_template (styleReferenceImage on create_coloring_book), cover (frontCoverImage or backCoverImage). A key only works in the field its purpose names.
fileNameNoOriginal file name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / purpose / description
      Previous value: -"Where the key will be used: character (one character's picture in characterDetails), character_sheet (characterReferenceSheet), page_template (pageTemplateImage), cover (frontCoverImage or backCoverImage). A key only works in the field its purpose names."New value: +"Where the key will be used: character (one character's picture in characterDetails), character_sheet (characterReferenceSheet), page_template (pageTemplateImage), style_template (styleReferenceImage on create_coloring_book), cover (frontCoverImage or backCoverImage). A key only works in the field its purpose names."
    • changedInput schema / properties / purpose / enum
      Previous value: -[
      -  "character",
      -  "character_sheet",
      -  "page_template",
      -  "cover"
      -]New value: +[
      +  "character",
      +  "character_sheet",
      +  "page_template",
      +  "cover",
      +  "style_template"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say non-read-only and closed-world; the description adds the substantive traits: no credit cost, a 4 MB request limit, JPEG-vs-PNG guidance, cover-side aspect/dimension requirements (trim + 0.125in bleed, 300 dpi, 2588x3375 px for 8.5x11), and the constraint that a key only works in the field its purpose names.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and payoff, which is good, but the 4 MB limit is stated three separate times ('at most 4 MB', 'under 4 MB', 'at most 4 MB (a request limit)') and the parenthetical field lists are dense. The content is valuable but the same facts are repeated rather than tightened.

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 3-parameter upload tool with no output schema, it covers the return value (s3Key), cost, size and format limits, reuse semantics, and the cover geometry that commonly causes failures. Only error/failure behavior and how fileName affects the returned key are left unstated.

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 coverage is 100% and the enum already documents the purpose-to-field mapping, so the description's restatement of those mappings (characterDetails[].referenceImage, pageTemplateImage, etc.) is largely duplicative. It adds little parameter meaning beyond the schema except reinforcing the dimension constraint that affects what bytes are acceptable.

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 (upload a PNG or JPEG to this InkChamps account) and the concrete result (an s3Key to pass in a book order), then enumerates the exact consuming fields. It is clearly a helper/upload step, distinguishable from the create_* siblings that consume the key.

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?

Explicitly says when to use it (to obtain an s3Key for order fields), that it is optional because every image field also accepts inline data, and that the key is reusable across many orders at no credit cost. That is when-to-use, when-not-to-use, and an alternative in one place.

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