Skip to main content
Glama

Generate custom print

generate_custom_print

Generate a CUSTOM t-shirt print from a text prompt (AI, takes 2-10 min). SPENDS THE ACCOUNT OWNER'S CREDITS: tell them the cost and their balance (get_credits) and get a yes BEFORE calling this — never spend silently, and never spend to 'try something' on your own initiative. Credits are earned (20 free on signup, 20 with every tee bought), so a wasted one is a real loss to them. Free exception: preserve=true prints their own image as-is and costs nothing. IMPORTANT: first call get_custom_print_options and ask the human to pick placement + product (and optionally background); do NOT silently use defaults. Args: prompt (design description), product? (one of ['kids_basic_tshirt_boy', 'kids_basic_tshirt_girl', 'kids_oversize_tshirt_boy', 'kids_oversize_tshirt_girl', 'mens_basic_tshirt', 'mens_oversize_tshirt', 'womens_basic_tshirt', 'womens_oversize_tshirt']), background? (t-shirt background, one of ['washed-beige', 'washed-black', 'washed-blue', 'washed-brown', 'washed-gray', 'washed-green', 'washed-orange', 'washed-pink', 'washed-red', 'washed-yellow', 'watercolor-beige', 'watercolor-blue', 'watercolor-sky']) — it is the design's background: it fills every piece of every product made from the design (sleeves, collar or hood, pants and underwear); the picture is a layer on the front only, placement? (print size/position, one of ['portrait_extended', 'square_center', 'chest_small']), model? (nb2 default | gpt-image-2 — both 1 credit, different styles), image_url? (https link to the user's OWN image — used as style/subject reference), preserve? (true = print the user's image exactly as-is, no AI redraw — kids' drawings, own art; FREE, no credits; requires image_url). Returns print_id — poll get_custom_print_status until done.

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": {
      "prompt": "<prompt>"
    },
    "name": "generate_custom_print"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoGeneration engine: nb2 (default) or gpt-image-2 — both 1 credit.
promptYesText description of the design to generate.
productNoGarment from get_custom_print_options (default mens_oversize_tshirt).
preserveNotrue = print the image exactly as-is, no AI redraw (free); requires image_url.
image_urlNohttps link to the user's OWN image, used as style/subject reference.
placementNoPrint size/position: portrait_extended (default), square_center or chest_small.
backgroundNoT-shirt background choice (see get_custom_print_options backgrounds).

Output Schema

NameRequiredDescriptionDefault
noteNo
errorNoe.g. not enough credits, daily limit reached, invalid product.
detailNo
statusNo
print_idNoGeneration id — poll get_custom_print_status with it.
tell_userNoSay this to the account owner — what was spent from their balance and what is left.
topup_urlNoWhere the human sees their credits and how they are earned (present on 'not enough credits').
cost_creditsNoCredits spent on this generation.
signup_bonusNo
balance_afterNoCredits left after this generation.
balance_beforeNo
studio_account_createdNoPresent when this first generation opened the user's credits account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / background / description
      Previous value: -"T-shirt background choice (see get_studio_options backgrounds)."New value: +"T-shirt background choice (see get_custom_print_options backgrounds)."
    • changedInput schema / properties / product / description
      Previous value: -"Studio product base from get_studio_options (default mens_oversize_tshirt)."New value: +"Garment from get_custom_print_options (default mens_oversize_tshirt)."
    • changedOutput schema / properties / error / description
      Previous value: -"e.g. not enough Studio credits, daily limit reached, invalid product."New value: +"e.g. not enough credits, daily limit reached, invalid product."
    • changedOutput schema / properties / print_id / description
      Previous value: -"Generation id — poll get_studio_status with it."New value: +"Generation id — poll get_custom_print_status with it."
    • changedOutput schema / properties / studio_account_created / description
      Previous value: -"Present when a Studio account was auto-created for the user."New value: +"Present when this first generation opened the user's credits account."
    • changedOutput schema / properties / topup_url / description
      Previous value: -"Where the user can buy credits (present on 'not enough credits')."New value: +"Where the human sees their credits and how they are earned (present on 'not enough credits')."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly=false, openWorld=true, idempotent=false, destructive=false; the description adds the material facts those lack — it consumes the account owner's credits, credits are earned at 20/signup and 20/tee, runtime is 2-10 minutes, results are asynchronous via print_id, and preserve=true is a free no-redraw path requiring image_url. No statement conflicts with the annotations (spending credits is a cost, not a data-destruction claim).

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 financial-risk warning, then the prerequisite sequencing, then the arg glossary — a sensible priority order with no filler. It is dense and long, and a few clauses (credit-earning mechanics) are decorative, but nearly every sentence carries decision-relevant information.

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 costly, asynchronous, open-world generation tool this covers prerequisites, consent, cost, defaults to avoid, free exceptions, and the follow-up poll. An output schema exists and is still complemented with the key return value (print_id) and what to do with it.

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% with baseline 3, but the description goes further: it enumerates the allowed product, background, and placement values (the schema exposes zero enums), explains that background fills every piece of every product while the picture is a front-only layer, and clarifies that both models cost 1 credit. Some of this duplicates schema text (prompt, image_url wording), which keeps it from a 5.

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 ('Generate a CUSTOM t-shirt print from a text prompt') plus scope qualifiers (AI-generated, 2-10 min). The name 'generate_custom_print' is distinguished from the sibling pair get_custom_print_options / get_custom_print_status, and the description declares what each of those handles instead.

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?

Explicit ordering: call get_custom_print_options first and ask the human to pick placement + product, then get_credits and obtain a yes before spending. It also names when NOT to use the paid path (preserve=true is free) and what to do after the call (poll get_custom_print_status). Alternatives are named, not inferred.

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