get_order_metafield
Retrieve a specific metafield from an order by providing the order ID, namespace, and key to access custom order data.
Instructions
Get a single order metafield by namespace and key.
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_id": "<order_id>",
"namespace": "<namespace>",
"key": "<key>"
},
"name": "get_order_metafield"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | The numeric Shopify order ID (or GID). | |
| namespace | Yes | Metafield namespace. | |
| key | Yes | Metafield key. |