Decline shift exchange

Decline an accepted shift exchange.

MCP tool shiftbase_write → decline_exchange_request

write Confirm

Rejects the exchange and leaves the shift with its original owner. Both employees are notified. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: decline_exchange_request
NameTypeDescription
request_id string required string Exchange id from list_exchange_requests.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "shiftbase_write",
    "arguments": {
      "operation": "decline_exchange_request",
      "arguments": {
        "request_id": "request_8c41d2"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "request_id": "2291",
    "status": "declined"
  },
  "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.