set_tiktok_ads_rule_status
Arm, disarm or delete a TikTok automated rule destructive
Description
TURN_ON IS THE SWITCH THAT HANDS A RULE TO TIKTOK TO RUN UNATTENDED, and it is gated in two classes because the two are not the same act. A rule whose only actions are TURN_OFF, MESSAGE or a DECREASE cannot start or raise spend — the worst it does is under-deliver, which is recoverable by turning it off — so it needs confirm:true and nothing else. A rule that can TURN_ON an object or INCREASE / ADJUST_TO a budget or bid is standing permission to spend real money with nobody present, so it needs confirm:true AND confirmScope set to the scopeToken that list_tiktok_ads_rules prints. That token is computed from the rule AS TIKTOK STORES IT: confirm:true proves the caller meant to arm SOMETHING, and only the echo proves they aimed at the rule they actually inspected rather than one a teammate has edited since. CALLING WITHOUT THE GATE CHANGES NOTHING and returns the sentence describing exactly what the rule will be able to do — show the user that, get an unambiguous yes, then confirm. TURN_OFF and DELETE only ever reduce what runs unattended, so both take confirm:true and no echo; prefer TURN_OFF, because TikTok publishes no way to restore a deleted rule and turning one off is reversible. THE ANSWER IS THE READ-BACK: the result carries the status TikTok stored per rule, and says so when it could not confirm. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
advertiserId | string | TikTok ad account id from list_tiktok_ads_accounts; omit when only one account is shared with this profile |
ruleIdsrequired | string[] | the rules to change |
operateTyperequired | "TURN_ON" | "TURN_OFF" | "DELETE" | TURN_ON = start running it unattended; TURN_OFF = stop, reversible; DELETE = remove, NOT reversible |
confirm | boolean | REQUIRED true for every operation — call without it first to see what would happen |
confirmScope | string | REQUIRED as well, to arm a rule that can start or raise spend: the scopeToken from list_tiktok_ads_rules. The refusal prints the value it wants. |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/set_tiktok_ads_rule_status.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_tiktok_ads_rule_status","arguments":{"ruleIds":"<array>","operateType":"<one of the listed values>"}}}
CLI
hermoso call set_tiktok_ads_rule_status --json '{"ruleIds":"<array>","operateType":"<one of the listed values>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_tiktok_ads_rulesList TikTok automated rules, classified by whether they can spendtiktok_ads_rule_resultsWhat TikTok’s automated rules actually didbind_tiktok_ads_rulePut objects under a TikTok automated rule, or take them outupdate_tiktok_ads_ruleReplace a TikTok automated rule’s definitioncreate_tiktok_ads_ruleCreate a TikTok automated rule (created turned OFF)