Skip to main content
Glama
apparelhub-mcp

apparelhub-mcp

Official

Add order item

add_order_item
Destructive

Add a product variant to a draft order before confirmation, with optional per-unit price and shipping cost; only draft orders are editable, while confirmed orders return an error.

Instructions

Add an item (e.g. another variant of the same product) to a DRAFT order, before it is confirmed to production. Optionally set custom_price (the new item's per-unit retail price) and/or shipping_cost (the order-level retail shipping the customer pays — NOT the provider's cost); omit them and the variant price / existing shipping are kept. Only works while the order is in "draft" status. Printful and Gelato edit the existing provider draft IN PLACE; Printify has no edit API, so it CANCELS + RE-CREATES the order — the result then carries edit_method="recreated" and a new fulfillment_external_id. Nothing is charged on a draft, so re-creation is safe. Returns 409 "order_not_editable" if the order was already confirmed/submitted to production.

[#f416d1]

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": {
      "order_uuid": "<order_uuid>",
      "variant_uuid": "<variant_uuid>"
    },
    "name": "add_order_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
quantityNoQuantity to add (default 1).
workspaceNoWorkspace uuid (agency accounts). Omit for Default.
order_uuidYesThe DRAFT order uuid (from list_my_orders / get_order_details).
custom_priceNoPer-unit retail price for the new item. Omit to use the variant's own price.
variant_uuidYesThe product variant to add (e.g. another color/size of the same product).
shipping_costNoOrder-level retail shipping price (what the customer pays, not the provider cost). Omit to keep the order's current shipping.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.2

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond destructiveHint=true by disclosing provider-specific mechanics: Printful/Gelato edit in place, while Printify cancels and re-creates, producing edit_method="recreated" and a new fulfillment_external_id. It also explains why the destructive path is safe ('nothing is charged on a draft') and names the exact error code for the blocked case, which the annotations alone could not convey.

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 action and scope, then layers the provider-specific re-creation caveat and the error case in a logical order; nearly every sentence carries real information. Minor deductions for the single dense paragraph and an unexplained stray token ('[#f416d1]') at the end.

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 6-parameter mutation tool with no output schema, the description covers the key facts an agent needs: draft-only precondition, optional price overrides and their omit behavior, side effects on the provider order, and the 409 failure case. Nothing material is left to inference.

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 description coverage is 100%, and the description largely restates what the schema already says about custom_price ('per-unit retail price') and shipping_cost ('order-level retail shipping the customer pays — NOT the provider's cost'). The omit-behavior note is useful reinforcement but adds no new meaning beyond the field descriptions, so the baseline 3 applies.

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 ('Add an item ... to a DRAFT order') plus the scope constraint ('before it is confirmed to production'). The parenthetical example ('another variant of the same product') and the contrast with remove_order_item make it clearly distinguishable from siblings without opening a schema.

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?

Gives a clear precondition ('Only works while the order is in "draft" status') and the failure mode (409 'order_not_editable' if already confirmed/submitted). It does not name a course of action for non-draft orders or an explicit alternative tool, so it stops short of full when/when-not/alternatives guidance.

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