Save the router rules with the expected version and a reason
summer_router_rules_updateSave the router rules with the expected version and a reason. Keeps the original revision and updates the Routing rules knowledge document. Run router_rules.test first. Needs a company admin.
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": {
"company": "<company>",
"version": "<version>",
"rules": "<rules>",
"reason": "<reason>"
},
"name": "summer_router_rules_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | The rules document: { version: 1, intake: [...], activity: [...] }. Intake rules { id, description, enabled?, route: "file", emailType, match: { senderDomains?, senderAddresses?, onlyMessage?, automatic?, vendor?, subject?, subjectNot?, body?, bodyNot? } } file a new email without a ticket; route: "join_ticket" (no emailType) adds a vendor email about one order number to the open ticket that already holds that number, and opens a ticket otherwise. Activity rules { id, description, enabled?, route: "ignore", match: { sources, orderStatuses?, eventKinds?, eventSummary?, handledBy? } } skip the agent when every new ticket item matches. automatic: true matches mail a machine wrote; vendor: true matches mail from one of the company's pharmacies or clinical partners. Patterns are case-insensitive regular expressions. | |
| reason | Yes | Why the rules change. Kept with the revision. | |
| company | Yes | ||
| version | Yes | The version you read. A newer saved version refuses the change. | |
| idempotency_key | No | Reuse the same key when retrying the same change |