Create a performance rule
create_ruleWatch one checkout's number every day and act when it crosses a line, e.g. "if the order bump is taken by fewer than 10% of buyers over 14 days, with at least 50 orders, switch it off". metric: conversion, bump_rate, upsell_rate or refund_rate. action: offer_active (config {target: bump|upsell, offerId, active}), set_price ({target: checkout|bump|upsell, offerId?, price}), set_copy ({target, offerId?, field: name|ctaLabel for the checkout or headline for an offer, text}) or ask_ai ({}), which flags it for you in list_findings. A fixed action never changes a live checkout directly: it files a request on the seller's Approvals page, then the rule pauses. Get offer ids from get_product. Confirm the rule with the seller before creating it.
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": {
"product": "<product>",
"name": "<name>",
"metric": "<metric>",
"comparison": "<comparison>",
"threshold": "<threshold>",
"action": "<action>"
},
"name": "create_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A short name the seller will recognise. | |
| action | Yes | ||
| config | No | Depends on action; see the description. | |
| metric | Yes | ||
| account | No | Only to work in a client's account: its id from list_accounts. Leave it out for your own account. | |
| product | Yes | The checkout's id or slug. | |
| minSample | No | Fire only after this many views (conversion) or orders (the rest). At least 10; default 50. | |
| threshold | Yes | A percentage, e.g. 10 for 10%. | |
| comparison | Yes | ||
| windowDays | No | Measured over this many days. Default 14. |