List units and sections
List the units and sections your account can reach, with their ids.
MCP tool quinyx_read → list_groups
read
Returns each group with its id, name, type and parent. Type is unit, section or a higher level, and the ids are what the other tools take as group_id. Shifts and absences can be added to units and sections only. The list follows the groups your roles reach in the group selector.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Part of a unit or section name. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "quinyx_read",
"arguments": {
"operation": "list_groups",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"groups": [
{
"group_id": "1042",
"name": "Harbor Cafe",
"type": "unit",
"parent_id": "1001"
},
{
"group_id": "1043",
"name": "Harbor Cafe Kitchen",
"type": "section",
"parent_id": "1042"
}
]
},
"isError": false
}