Add a scheduling rule for a field worker
add_staff_scheduling_ruleAdds a plain-English scheduling rule for one field worker (staff_id), as Add rule on their Rules tab does, e.g. "Won't work Tuesdays" or "Only mornings in Brooklyn". hardness hard (default: never scheduled against it) or soft (avoided when possible). The same wording again updates the same rule. Answers the worker's rules with their ids. Remove one with remove_staff_scheduling_rule; read every rule with read staff_scheduling_rules. Pass the same idempotency_key when retrying. An owner-level change: Sergio tells the owner after it is made.
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": {
"staff_id": "<staff_id>",
"plainEnglish": "<plainEnglish>",
"idempotency_key": "<idempotency_key>"
},
"name": "add_staff_scheduling_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why you are doing this, in one sentence. The owner sees it in the notice Sergio sends after the change. | |
| hardness | No | ||
| staff_id | Yes | ||
| plainEnglish | Yes | ||
| idempotency_key | Yes | Your id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation. |