Change lead routing
update_lead_routingChange who picks up new leads and follow-ups. Send only what changes. Add team_id to change one team's rule, or team_id with use_workspace_rule to make that team follow the workspace rule again. Ids come from get_lead_routing. Admins only. Ask the user to confirm before calling this tool.
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": "update_lead_routing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | shared_queue: any rep can claim new work; round_robin: new work goes to the next rep in turn | |
| team_id | No | Change this team's rule instead of the workspace rule | |
| member_ids | No | The reps in the rule, replacing the current list (user ids from get_lead_routing) | |
| workspace_id | No | Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace. | |
| fallback_user_id | No | Who takes a new lead nobody else gets; null means the workspace owner | |
| response_minutes | No | Minutes a rep has to respond before the work counts as overdue | |
| use_workspace_rule | No | With team_id: drop the team's own rule so it follows the workspace rule | |
| prefer_existing_owner | No | Send a returning customer back to the rep who already has them |