Skip to main content
Glama
apparelhub-mcp

apparelhub-mcp

Official

Remove order item

remove_order_item
Destructive

Remove a line item from a DRAFT order, provided at least one item remains. Use the order_item_id from get_order_details; Printful and Gelato edit in place while Printify cancels and re-creates.

Instructions

Remove a line item from a DRAFT order (the order must keep at least one item). Same provider semantics as add_order_item: Printful/Gelato edit in place, Printify cancels + re-creates. Only works while the order is a draft. Get the order_item_id from get_order_details (each item carries an id).

[#b20b6e]

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>",
      "order_item_id": "<order_item_id>"
    },
    "name": "remove_order_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceNoWorkspace uuid (agency accounts).
order_uuidYesThe DRAFT order uuid.
order_item_idYesThe order item id to remove (from get_order_details items[].id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description is not carrying the safety burden alone. It still adds genuinely new behavior: the draft-only window, the at-least-one-item invariant, and provider-specific semantics where Printify cancels and re-creates the item rather than editing in place — a side effect an agent should know about. It stops short of saying whether the returned data or the order total changes.

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?

Dense and front-loaded: the primary action and its hard constraint come first, then provider semantics, then id provenance. A stray trailing token ('[#b20b6e]') is unexplained noise that slightly undercuts an otherwise tight definition.

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 3-parameter destructive mutation with no output schema, the definition covers the action, its preconditions, its side effects per provider, and where the id comes from. An agent has everything needed to decide and invoke correctly.

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%, so order_uuid, order_item_id and workspace are already documented, and the schema itself notes the id comes from get_order_details items[].id. The description reinforces the draft requirement on order_uuid but adds no syntax or format meaning beyond the schema, so the baseline of 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 (remove a line item from a DRAFT order) plus the precondition that the order must retain at least one item. It is clearly distinguishable from siblings like remove_product_from_collection and remove_member, and explicitly frames itself against add_order_item.

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 ('Only works while the order is a draft') and when-not conditions (draft-only, cannot remove the final item). It also routes the agent to get_order_details as the prerequisite source for the required id, so the call sequence is inferable without extra discovery.

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