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

Parameters: decline_leave_request
NameTypeDescription
leave_id integer required integer Leave ID from list_leave_requests.
comment string required string Reason the employee sees.

tools/call

JSON-RPC

{
  "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

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.