add_user_toil
Add a time off in lieu (TOIL) entry for a user, specifying the year, amount (between -5000 and 5000), and optional description.
Instructions
Add a TOIL (time off in lieu) entry for a user in a year.
Args: user_id: The user to add TOIL for. year: The year the TOIL applies to. amount: TOIL amount (-5000 to 5000). description: Optional description (max 1000 chars).
Returns the ID of the new TOIL entry.
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": {
"user_id": "<user_id>",
"year": "<year>",
"amount": "<amount>"
},
"name": "add_user_toil"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| amount | Yes | ||
| user_id | Yes | ||
| description | No |