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
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "shiftbase_read",
"arguments": {
"operation": "list_departments",
"arguments": {}
}
}
} Example response
{
"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
}