list_order_commands
List the ORDER COMMANDS of the project — the sync steps behind each order: insert_order (into the store), update_order, accept_order, cancel_order, add_shipment (tracking to the channel), add_invoice, add_refund, decrease_stock and others. Use this to find which step of an order failed, when and why, e.g. an order that did not reach the shop or a tracking number that did not reach the marketplace. Returns {commands:[{commandId, orderId, commandCode, commandLabel, status, publisher, publisherId, subscriber, subscriberId, createdAt, updatedAt, processAfter, errorCode, message}], returned, statusCounts:[{commandCode, status, count}], countsComplete, sensitiveGate}, most recently created first. status: new / pending / processing / pending_result = waiting or running; complete = done; error = failed (retried at processAfter); warning / skipped / not_available = finished without effect. publisher issued the step and subscriber runs it (store / channel / core), publisherId and subscriberId name the platform or channel; errorCode is Koongo's error code. statusCounts counts the newest 5000 matching commands; countsComplete:false = partial. Filter by order_id (orderId from list_orders; wins over channel_order_id), status, command_code, since (YYYY-MM-DD, created or updated on or after); limit default 50, max 200. A broad filter on a large project can return invalid_request query_timeout: add status, order_id or since. SENSITIVE-GATE: message (redacted error text that can quote customer data) is null until acknowledge_sensitive:true; the first call returns {sensitiveGate:{confirmationRequired:true, itemCount, fields:['message'], kind:'order_messages'}} — present it to the USER, get approval, then re-call. project_id is OPTIONAL (project_id_required otherwise — then call list_projects).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_order_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max commands (default 50, max 200). | |
| since | No | Only commands created or updated on or after this date (YYYY-MM-DD). | |
| status | No | Only commands in this status, e.g. 'error'. | |
| order_id | No | Koongo order id (orderId from list_orders). | |
| project_id | No | ||
| command_code | No | Only this command, e.g. 'add_shipment' or 'insert_order'. | |
| channel_order_id | No | The marketplace's order number (channelOrderId from list_orders). | |
| acknowledge_sensitive | No | Set true only AFTER the user approves seeing the error messages; absent/false returns a sensitiveGate instead. |