Skip to main content
Glama
apparelhub-mcp

apparelhub-mcp

Official

Upload your own artwork

upload_design
Destructive

Turn merchant-owned artwork—logos, brand marks, photos—into a design_uuid for create_product or ship_product. Upload PNG, JPEG, WEBP, or SVG by URL, base64, or presigned transfer.

Instructions

Upload artwork the merchant ALREADY OWNS and turn it into a design_uuid usable by create_product / ship_product. This is the way to build products from a client's own files — a logo, a brand mark, a cleared cover, a photograph — instead of generating something new. If a client says their mark must not be redrawn, use this; never regenerate or approximate a mark to work around a missing file.

Three ways to supply the file:

  1. source_url — an https URL the server can fetch. One call, no context cost, full resolution. Use it whenever the file is hosted or reachable by a link that does not require sign-in.

  2. image_base64 — inline bytes you can actually read. Costs roughly 350k tokens per megabyte of file, so small files only (4MB cap).

  3. presigned: true — ONLY if you can make an HTTP PUT yourself (a shell with curl, or code that can call fetch/requests). Returns an upload_url you PUT the bytes to, then you call this tool again with the returned image_uuid to finish. If you cannot do both steps, do not use it: the reserved design is left behind as a failed tile in the merchant's gallery. An image the user attached in a chat is usually NOT a file you can PUT or base64-encode. If there is no link to it, ask the merchant to upload it at apparelhub.ai/images/gallery (or share a public link) rather than starting an upload you cannot finish. Calling this tool with no file and no presigned: true reserves nothing and returns file_required.

Accepts PNG, JPEG, WEBP and SVG. SVG is the BEST input for a logo or mark: it is rendered server-side at print resolution, so it stays crisp at any size. Two things must be true of the SVG first — text converted to outlines, and any linked image embedded — otherwise the upload is refused with instructions rather than silently losing that part of the artwork. For pixel art, or any hard-edge raster mark that must stay crisp, pass upscale="pixel" so a small file is enlarged without being smoothed.

[#90c8cd]

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_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoDisplay title for the design. Defaults to the filename stem.
upscaleNoHow to resample if the file is below the 512px print minimum. "pixel" = nearest-neighbour, keeps pixel art and hard-edge marks crisp. "smooth" = for photographic art. "auto" (default) detects. Pass "pixel" for a client mark that must not be approximated.
filenameNoOriginal filename. Used for the default title.
presignedNoAsk for a presigned upload_url instead of supplying the file. Only set this if you can PUT the bytes yourself AND call upload_design again with the image_uuid; otherwise the reserved design is left as a failed tile.
workspaceNoWorkspace uuid (agency accounts).
image_uuidNoFinish a presigned upload: pass the image_uuid from a previous upload_design call after you have PUT the bytes. Also use this to resume polling if processing was still running.
source_urlNoPublic https URL of the artwork. The server fetches it. Must not require sign-in.
content_typeNoDeclared MIME type. Detected from the file when the bytes are supplied, so it is only needed for the presigned mode (defaults to image/png). Use image/svg+xml to upload vector.
image_base64NoBase64-encoded file bytes (a data: URI is accepted). Expensive in context — prefer source_url or the presigned mode. Capped at 4MB decoded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.25.4
    • addedInput schema / properties / presigned
      Added value: +{
      +  "description": "Ask for a presigned upload_url instead of supplying the file. Only set this if you can PUT the bytes yourself AND call upload_design again with the image_uuid; otherwise the reserved design is left as a failed tile.",
      +  "type": "boolean"
      +}
  2. First observedv0.15.2

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: quantifies base64 context cost (~350k tokens/MB) and the 4MB cap, discloses that an abandoned presigned upload leaves a failed tile in the gallery, that SVGs missing outlined text or embedded images are refused with instructions, and that a no-file call returns file_required. The destructiveHint=true annotation is consistent with the disclosed failed-tile side effect.

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?

Front-loads the core purpose, then a numbered list keyed to the three input modes, which is easy to scan. It is on the long side and repeats the presigned-teardown warning once more than needed, and the trailing "[#90c8cd]" token is stray noise, but no paragraph is filler.

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 9-parameter, zero-required, no-output-schema tool, the description covers mode selection, failure returns (file_required, upload_url, image_uuid), format constraints and resolution behavior. Nothing an agent needs to call it correctly or recover from a partial upload is missing.

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, but the description adds real decision semantics: which of source_url / image_base64 / presigned to choose, that image_uuid both finishes a presigned upload and resumes polling, and that upscale="pixel" is the correct choice for a mark that must not be approximated. It does not add much on title/filename/workspace/content_type beyond the schema.

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 artwork the merchant ALREADY OWNS and turn it into a design_uuid") and explicitly positions it against the generation path ("instead of generating something new"). A downstream agent can tell it apart from iterate_design/design_apparel and knows the output identifier it produces.

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?

Gives explicit when-to-use ("if a client says their mark must not be redrawn, use this; never regenerate") and enumerates three mutually exclusive input paths with the condition that selects each (hosted URL, small inline bytes, self-executable PUT). It also names when NOT to use presigned mode ("If you cannot do both steps, do not use it") and supplies a fallback (ask merchant to upload at the gallery URL).

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

Deploy Server

Other Tools