Add a Call Rule
add_ruleUse this when the user wants a new screening rule for their incoming calls, e.g. "put my family straight through" or "tell sales callers I'm not interested". Takes the rule in the user's words (text), the same rule as an instruction to the receptionist (prompt), an emoji, the people it is about (mentions, each a name and full number), and optionally expiresAt. 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; confirmedGeneralScope:true marks a rule meant for every caller.
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. |