Publish draft shifts

Publish the draft shifts of a location between two dates to the team.

MCP tool deputy_write → publish_shifts

write Confirm

Publishes every draft shift of one location between two dates, so the team sees them. Returns how many were published. Employees may be notified by Deputy, so it waits for you. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: publish_shifts
NameTypeDescription
location_id integer required integer Location ID from list_locations.
date_from date required date First day, YYYY-MM-DD.
date_to date required date Last day, YYYY-MM-DD.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "deputy_write",
    "arguments": {
      "operation": "publish_shifts",
      "arguments": {
        "location_id": 1,
        "date_from": "2026-10-01",
        "date_to": "2026-10-01"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "published": 12,
    "location_id": 1,
    "date_from": "2026-10-26",
    "date_to": "2026-11-01"
  },
  "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.