Skip to main content
Glama
apparelhub-mcp

apparelhub-mcp

Official

Move a held order to a provider that ships there

reroute_order
Destructive

Move a held order to the same design on a fulfillment provider that ships to the delivery address, reassigning printing and closing the original order.

Instructions

Move an order that is held because its fulfillment provider cannot deliver to the address (get_order_details shows hold_details.code destination_unsupported) to the same design on a provider that ships there. Pass the product_uuid from hold_details.suggested_reroute.product_uuid; use a different product only if the user names it. The platform creates the order in the store that sells that product, sends it there as a draft, and closes the held original; the storefront link and tracking move with it. Allowed only when the target product's store is connected to the SAME storefront the order came from (an order entered by hand, with no storefront link, may move to any store). When suggested_reroute is null no move is allowed: do not call this, tell the user to cancel the order and refund the customer on their storefront. Refusals (HTTP 409) carry a merchant-readable message; relay it: not_destination_held, destination_unsupported, product_not_in_connected_store, reroute_variants_missing, recipient_unavailable, reroute_channel_mismatch. Ask the user before calling: it changes which provider prints and charges for the order.

[#d8b77d]

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>",
      "product_uuid": "<product_uuid>"
    },
    "name": "reroute_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceNoWorkspace uuid (agency accounts).
order_uuidYesThe held order uuid (from list_my_orders / get_order_details).
product_uuidYesThe product to fulfill the order with: hold_details.suggested_reroute.product_uuid, unless the user names another product with the same design.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.25.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true; the description goes well beyond them by disclosing the side effects (a new order is created in the store selling that product, sent as a draft, and the held original is closed, with storefront link and tracking carried over). It also documents the 409 refusal surface with named codes and instructs relaying the merchant-readable message.

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 but front-loaded: hold condition, then parameter sourcing, then side effects, then constraints, then failure modes. The refusal-code list is a useful reference but is a bare enumeration, and the user-confirmation rule would earn more attention if it were placed earlier rather than appended to a long paragraph.

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 destructive, cross-store mutation with three parameters and no output schema, the description covers trigger condition, parameter sourcing, side effects, eligibility constraints, error handling, and confirmation requirements. 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuinely new constraint semantics: the target product's store must be connected to the SAME storefront the order came from, except for hand-entered orders with no storefront link. The product_uuid sourcing guidance largely restates the schema, 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 (move) plus the exact resource and precondition (an order held with hold_details.code = destination_unsupported), and names the destination condition (a provider that ships there). This is clearly distinguishable from siblings like cancel_order and approve_order_hold, which handle other hold resolutions.

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 (correct hold code), explicit when-not (suggested_reroute is null → do not call; tell the user to cancel and refund), and an explicit interaction rule (ask the user first because it changes which provider prints and charges). The sibling alternative for the null case is named directly.

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