get-groups
Fetch workspace groups, optionally by specific IDs or case-insensitive name search, to supply group IDs for notifications.
Instructions
Get groups from a workspace. Retrieves all workspace groups by default, or specific groups if groupIds array is provided. Supports optional case-insensitive search filtering by group name. Use this before passing group IDs to tools that support group notifications.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceId": "<workspaceId>"
},
"name": "get-groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupIds | No | Optional array of specific group IDs to fetch. If not provided or empty array, fetches all workspace groups. | |
| searchText | No | Optional search text to filter groups by name (case-insensitive). | |
| workspaceId | Yes | The workspace ID to get groups from. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| groups | Yes | ||
| totalGroups | Yes | ||
| workspaceId | Yes | ||
| filteredGroups | Yes |