Skip to main content
Glama
apparelhub-mcp

apparelhub-mcp

Official

Confirm order

confirm_order
DestructiveIdempotent

Confirm a DRAFT order to send it into production at the fulfillment provider. Only works for orders in "draft" status that have already been submitted to a provider (have a provider order id).

Instructions

Confirm a DRAFT order to send it into production at the fulfillment provider. Only works for orders in "draft" status that have already been submitted to a provider (have a provider order id). Use after submit_order_to_fulfillment on a "prepare, then I confirm" store. Toolbox POD: confirming is what PAYS for the order, charged to the card on the merchant's own Toolbox POD account within the spending limit they set when connecting; with no spending limit on, the order waits for the merchant to pay. Once paid it is final (cancellation is usually not possible). If the result carries hold_details, the order was NOT confirmed: read get_order_details guidance. Also the recovery for a PROVIDER-FAILED order (get_order_details shows needs_attention.kind = provider_failed with recovery_action = resubmit_to_fulfillment): once the merchant has fixed the cause named in needs_attention.reason on their provider account, this confirms the SAME provider order again, never a second one, so nothing is charged twice; resubmitted: true in the result means it took and polling resumes. If the provider refuses again the tool fails with provider_refused carrying the provider's reason: do not retry, report it. A conflict with order_already_submitted_to_provider on a cancelled order means the merchant cancelled it after the failure; it cannot be resubmitted.

[#d8022b]

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

Input Schema

NameRequiredDescriptionDefault
workspaceNoWorkspace uuid to scope to (agency accounts). Omit for Default.
order_uuidYesThe order uuid (from list_my_orders / get_order_details).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive/openWorld/idempotent, but the description adds substantial context beyond them: confirming is what charges the merchant's card, the spending-limit behavior, that payment is irreversible, the meaning of hold_details, the no-double-charge guarantee on resubmit with the 'resubmitted: true' signal, and explicit do-not-retry handling for provider_refused. That is materially more than the annotations 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-loaded with the precondition gate and otherwise dense with operational value — nearly every clause prevents a real failure mode. However it is a single dense paragraph that mixes payment semantics, hold handling, and failure recovery, which makes it harder to scan, and it ends with a stray artifact token ('[#d8022b]') that has no place in a tool description.

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, real-money, open-world mutation with no output schema, the description covers what an agent needs: when it is valid, that it charges money, that it is final, how hold results read, and how to recover a provider-failed order without double-charging. Nothing required to call it correctly is missing.

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 coverage is 100% and both parameters (workspace, order_uuid) are self-documented in the schema. The description only obliquely references where order_uuid comes from ('have a provider order id') and adds no format or scoping detail. Baseline 3 is appropriate when the schema already carries parameter meaning.

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?

Opens with a specific verb and resource plus scope: 'Confirm a DRAFT order to send it into production at the fulfillment provider.' The status gate ('draft') and the provider-order-id precondition distinguish it cleanly from submit_order_to_fulfillment and approve_order.

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?

Explicitly states the precondition (draft status, already submitted, has provider order id) and the sequencing ('Use after submit_order_to_fulfillment on a "prepare, then I confirm" store'). It also routes the agent for the two non-obvious branches: hold_details means not confirmed (go read get_order_details) and provider_failed recovery via resubmit instead of a new order.

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