Approve a leave request
Approve a pending leave request and set the hours of each day.
MCP tool deputy_write → approve_leave_request
Approves one leave request. day_type sets every day: standard_hours, scheduled_hours or non_working_day, matching Deputy's Standard hours, Scheduled hours and Non-working day. leave_type changes the type the employee suggested. For past dates Deputy creates the timesheets at once, for future dates as each day passes. The employee is told. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| leave_id integer required | integer | Leave ID from list_leave_requests. |
| day_type enum required | enum | standard_hours, scheduled_hours or non_working_day, applied to every day of the request. |
| leave_type string | string | Leave type name as shown in Deputy. Default: the type the employee picked. |
| comment string | string | Comment the employee sees. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "deputy_write",
"arguments": {
"operation": "approve_leave_request",
"arguments": {
"leave_id": 311,
"day_type": "standard_hours",
"comment": "Approved, enjoy the break."
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"leave_id": 311,
"employee": "Tom Becker",
"status": "approved",
"leave_type": "Annual leave",
"day_type": "standard_hours",
"days": [
"2026-11-03",
"2026-11-04"
],
"comment": "Approved, enjoy the break."
},
"isError": false
}