create_validation
Create a cart or checkout validation rule using a Shopify Function; optionally pass metafields to configure the function.
Instructions
Create a new cart/checkout validation rule using a Shopify Function
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": {
"functionId": "<functionId>"
},
"name": "create_validation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| functionId | Yes | ID of the validation function to use | |
| metafields | No | Configuration metafields for the function |