Set wake rule
stack_set_wake_ruleCreate a wake rule, or replace one (rule_id). source is email, sms, voicemail, call, incoming_call, payment, post, invite, schedule, handoff, decision, meeting, service_event or telegram (an incoming call, a drop-off from another of the customer's agents, a decision and an event of a connected service such as RentAHuman wake the agent on their own: a rule for them only gives the wake its own task). filters narrow it: from (addresses, @domain.example for a whole domain, phone numbers, or telegram: for a Telegram sender; message sources only) and min_amount_cents (payments only). A task is the owner's own words, or STACK's plain default for the source; nothing from the event is ever put into it. Each wake is one action on the meter and is put to the owner's decider as wake.deliver. At most 50 rules per scope. Operator only.
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": {
"name": "<name>",
"source": "<source>"
},
"name": "stack_set_wake_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A name for the rule | |
| task | No | The owner's own words for the agent; omit for STACK's plain default for the source | |
| source | Yes | ||
| enabled | No | ||
| filters | No | ||
| rule_id | No | Rule id (wkr_*) to replace; omit to create | |
| agent_id | No | Agent id (agt_*) of the agent these apply to. Omit for the customer's defaults, which every agent without its own setting uses. |