Add a Call Rule
add_ruleAdds a screening rule for the user's incoming calls: the rule in the user's words (text), the same rule as an instruction to the call assistant (prompt), an emoji, and the people it is about (mentions). Without confirmed:true nothing is added: it returns confirmation_required with the exact rule. A rule that names someone not tagged in mentions is refused with name_detected_pending_confirmation and a nextStep.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_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." | |
| 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 | When the rule stops (ISO 8601); omit to keep it. | |
| confirmedGeneralScope | No | true marks the rule as applying to every caller, not only the people in mentions. |