List departments

List the departments and teams of the account.

MCP tool shiftbase_read → list_departments

read

Returns each department with its id and the teams in it. Use the ids to filter the other tools. An account sees only the departments its role can open.

Parameters

No parameters.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "shiftbase_read",
    "arguments": {
      "operation": "list_departments",
      "arguments": {}
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "departments": [
      {
        "id": "12",
        "name": "Harbor Cafe",
        "teams": [
          {
            "id": "31",
            "name": "Kitchen"
          },
          {
            "id": "32",
            "name": "Floor"
          }
        ]
      }
    ]
  },
  "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.