list_teams_channels
Lists joined Microsoft Teams and their channels, using cached cursor pages and optional live refresh to avoid repeated Graph requests.
Instructions
List joined Microsoft Teams and their channels (use list_chats for 1:1/group chats). Cached reads and cursor pages make no Graph request; refresh=true or an empty cache calls Graph for teams (1+ requests) then channels (1 $batch per 20 teams). Requires Team.ReadBasic.All and Channel.ReadBasic.All. Returns paginated { teams, returned, has_more, next_cursor, total }.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_teams_channels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of teams to return per page (1..1000, default 50). | |
| cursor | No | Opaque next_cursor from a previous page; reads the next page from the local SQLite cache without calling Microsoft Graph. | |
| refresh | No | Sync teams and channels live from Microsoft Graph before returning (1+ requests for teams, plus 1 $batch per 20 teams; cannot combine with cursor). |