Decline a leave request
Decline a pending leave request with a reason.
MCP tool deputy_write → decline_leave_request
write Confirm
Declines one leave request. The comment is required, because Deputy requires one to decline, and the employee reads it. The decision reaches the employee, so it waits for you. 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. |
| comment string required | string | Reason the employee sees. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "deputy_write",
"arguments": {
"operation": "decline_leave_request",
"arguments": {
"leave_id": 1,
"comment": "comment"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"leave_id": 312,
"employee": "Ana Lopez",
"status": "declined",
"comment": "Two others are off on Nov 10. Could you move it by a day?"
},
"isError": false
}