Test Run Automation
automation_test_runDry-runs an automation against one store and returns the execution
trace (visited steps, condition outcomes, taken edges). Nothing is
sent, metered, or persisted. Provide either shop_domain (a CRM
store, or a store known only from the install your app reported) or
custom_store (synthetic attributes), XOR. Omit both
only when the saved graph never reads store data. Optional
event_context stands in for the triggering event's merge-tag values.
Takes app_id and automation_id (scoped_id or uuid). Requires
the automations.edit permission (the update ability on the
automation) and a strictly valid saved graph. A real store
(shop_domain) also requires crm.merchants.view; custom_store
and storeless runs do not.
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": {
"app_id": "<app_id>",
"automation_id": "<automation_id>"
},
"name": "automation_test_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The app uuid returned by `apps_list`. | |
| shop_domain | No | Real store myshopify domain to dry-run against. XOR with custom_store. | |
| custom_store | No | Synthetic store attributes when no real store is available. XOR with shop_domain. | |
| automation_id | Yes | The automation scoped_id or uuid returned by `automations_list`. | |
| event_context | No | Optional map of trigger merge-tag variable name → string value for the dry-run. | |
| organization_id | No | An organisation uuid or slug. When supplied, `app_id` is resolved within that organisation and may be a slug instead of a uuid, mirroring the Meridian web app. |