Skip to main content
Glama

Add custom print to cart

add_custom_to_cart

Put a FINISHED custom print into the cart as a product. Args: print_id (must be done), product? (same set as studio_generate), size, qty?. Then the normal checkout flow applies (get_order_preview -> prepare_order).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qtyNoQuantity (default 1, max 99).
sizeYesSize label; must be available for the chosen product.
productNoStudio product base, same set as studio_generate (default mens_oversize_tshirt).
print_idYesFinished print id — studio_status must report status=done.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent instead of a cart when the call failed (bad index, unavailable size, ...).
itemsNoCart lines in index order — this index is what set_cart_quantity/cart_update/cart_remove take.
currencyNo
subtotalNoSum of price x qty over all lines, USD.
checkout_urlNoCart page URL for the human.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations (readOnlyHint=false, destructiveHint=false) are consistent with the mutating action of adding to cart. The description adds the checkout flow context and the prerequisite that print_id is finished, which are useful behavioral details beyond the schema.

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

Conciseness5/5

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

Two sentences: first states purpose, second lists arguments with concise parenthetical hints. No fluff. Every word earns its place, and the structure is front-loaded with the core action.

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?

The description covers the main workflow: dependency on studio_status and integration with checkout flow. For a tool with moderate complexity (4 params, 2 required, plus output schema), it provides sufficient context to use correctly, though it could briefly mention error handling for invalid print_id.

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?

With 100% schema coverage, the description still adds value: it explains print_id must be done (linking to studio_status), product belongs to the same set as studio_generate, and size must be available for the chosen product. This contextual enrichment goes beyond the schema's basic descriptions.

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 clearly states the action ('Put a FINISHED custom print into the cart') and distinguishes from siblings like add_to_cart (presumably for existing products) and studio_generate (which creates prints). The verb 'put' and resource 'finished custom print' are specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives context: 'print_id (must be done)' ties to studio_status, and 'Then the normal checkout flow applies (get_order_preview -> prepare_order)' explains downstream usage. It does not explicitly list when not to use the tool or alternatives, but the sibling context and parameter hints provide reasonable guidance.

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.

TDQS

A3.9/5.0
Disambiguation4/5

Tools are mostly distinct; slight overlap exists between cart_update and set_cart_quantity (both modify cart lines), and between remove_promo and cart_remove (different domains). Other groups (studio, designer) are well-separated.

Naming Consistency5/5

Consistent use of verb_noun pattern for most tools, with noun prefixes (designer_, studio_) grouping related tools. No mixed conventions or obscure abbreviations.

Tool Count3/5

31 tools is high for a single server, covering shopping, studio, and designer domains. Some tools like cart_update and set_cart_quantity seem redundant, pushing count beyond optimal.

Completeness4/5

Core workflows (search, cart, checkout, generation, designer submission) are covered. Minor gaps: no edit/delete for designs or orders, and no tool to manage saved addresses beyond viewing.

Resources