wc_update_order_meta
Order metadata upsert. Creates the key when missing and updates the first matching key when present. Ask the user for confirmation before calling with confirm=true. Mirrors woocommerce-mcp-server method update_order_meta using local WordPress authentication; no WooCommerce REST API keys are required.
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": {
"site_id": "<site_id>",
"orderId": "<orderId>",
"metaKey": "<metaKey>",
"metaValue": "<metaValue>",
"confirm": "<confirm>"
},
"name": "wc_update_order_meta"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true only after the user explicitly confirms this WooCommerce mutation. | |
| metaKey | Yes | The metadata key. | |
| orderId | Yes | The WooCommerce order ID. | |
| site_id | Yes | The connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID. | |
| metaValue | Yes | The metadata value. Can be a scalar, object, array, or null. |