Update a Call Rule
update_ruleUse this when the user wants to change, pause or extend one of their existing screening rules. ruleId comes from list_rules; only the fields passed are changed: text, prompt, emoji, mentions (the tagged people), isActive (false turns the rule off and keeps it) and expiresAt (null makes it permanent). Without confirmed:true nothing changes: it returns confirmation_required with the exact change. An unknown ruleId returns code not_found. New rules are add_rule; removing one is delete_rule.
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": {
"ruleId": "<ruleId>"
},
"name": "update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The rule as the user would say it, e.g. "Put Mom through". | |
| emoji | No | One emoji shown beside the rule, e.g. "📞". | |
| prompt | No | The same rule as an instruction to the call assistant, e.g. "When Mom calls, transfer the call to me." | |
| ruleId | Yes | A ruleId from list_rules. | |
| isActive | No | false turns the rule off without deleting it. | |
| mentions | No | Each person the rule is about, with their full number in international form. | |
| confirmed | No | true means the user has approved the confirmation_required preview returned by an earlier call with the same arguments, and carries it out. Without it nothing changes and that preview is returned. | |
| expiresAt | No | ISO 8601; null makes it permanent. |