record_time_off
Record time off (vacation, sickness, a public holiday, training and so on) for a date range, so the capacity planner takes those working hours out. With no userId the leave is the caller's own; recording someone else's needs org-wide project access (a manager). When the workspace requires approval for time off, a non-manager's entry is PENDING and the approvers are notified; otherwise, and always for a manager, it is APPROVED at once. An entry that overlaps existing pending or approved leave for the same person is refused. When an approved entry lands on tasks with little float, the people running those projects are told.
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": {
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "record_time_off"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional note, up to 500 characters. | |
| type | No | Default VACATION. | |
| hours | No | Hours off per working day, for a partial day (up to 24). Omit for whole days. | |
| userId | No | Whose leave. Omit for your own. | |
| endDate | Yes | Last day off, YYYY-MM-DD, inclusive. The same as startDate for one day. | |
| startDate | Yes | First day off, YYYY-MM-DD. |