Decline absence request
Decline a pending absence or leave request.
MCP tool shiftbase_write → decline_absence_request
write Confirm
Declines the request and returns its status. The schedule does not change. The employee is notified by Shiftbase. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| request_id string required | string | Request id from list_absence_requests. |
| note string | string | Reason shown to the employee. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "shiftbase_write",
"arguments": {
"operation": "decline_absence_request",
"arguments": {
"request_id": "request_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"request_id": "7732",
"status": "declined"
},
"isError": false
}