Skip to main content
Glama

AgentMade Print on Demand

Upload and validate artwork

validate_artwork

Upload artwork and check that it prints well on one product placement. Send exactly one of: artwork with svg (markup, best for text and logos), base64 (a PNG, JPEG or SVG file up to about 2 MB, no data: prefix) or url (a public HTTPS link to the file); file (a file object from your client); or upload_link:true when you cannot send the file in this call. Returns artwork_id and PASS/WARN/FAIL checks: print size in mm, resolution (DPI), print and safe area, transparent background, contrast with the product colour. For photos and AI images use preset center_chest. Use the artwork_id in quote.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoA file that your client gives you as a file object (for example in ChatGPT).
sizeNoGarment size, e.g. "XL". Print areas can differ by size; without it the smallest size is checked.
colorNoProduct colour, for the contrast check.
presetNoNamed position inside the placement, e.g. "center_chest", "left_chest", "full_front". Defaults to the placement default.
top_mmNoDistance from the top of the print area to the top of the artwork.
artworkNoNew artwork to upload: exactly one of svg, base64 or url.
left_mmNoDistance from the left edge of the print area. Default: horizontally centred.
width_mmNoExact printed width of the visible artwork in millimetres. Height follows the aspect ratio.
height_mmNoMaximum printed height in millimetres.
placementNoPrint location on the product, e.g. "front" or "back". See get_product for the list.front
artwork_idNoRe-validate artwork uploaded earlier, or validate the file of an upload link.
product_idYesProduct to print on.
upload_linkNoSet true when you cannot send the file in this call. The answer gives an artwork_id and a one-time upload_url: upload with curl, or give the link to the person. Then call validate_artwork with the artwork_id.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
artworkNo
next_stepYesWhat the agent should do next, in plain language.
artwork_idNoOnly in the upload_link answer: the reserved id for the file.
expires_atNo
upload_urlNoOnly in the upload_link answer: the one-time upload link.
validationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.