list_channels
Retrieve Zoom channel details with pagination support using the Zoom API. Specify page size and token to manage large datasets efficiently.
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_channels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next_page_token | No | Next page token | |
| page_size | No | Number of records returned |
Implementation Reference
- src/tools/chat.js:12-23 (handler)Handler function that fetches the list of channels from the Zoom API endpoint '/chat/users/me/channels', supports pagination with page_size and next_page_token, and handles API response and errors.
handler: async ({ page_size, next_page_token }) => { try { const params = {}; if (page_size) params.page_size = page_size; if (next_page_token) params.next_page_token = next_page_token; const response = await zoomApi.get('/chat/users/me/channels', { params }); return handleApiResponse(response); } catch (error) { return handleApiError(error); } } - src/tools/chat.js:8-11 (schema)Zod schema defining optional input parameters for pagination: page_size (number between 1 and 300) and next_page_token (string).
schema: { page_size: z.number().min(1).max(300).optional().describe("Number of records returned"), next_page_token: z.string().optional().describe("Next page token") }, - src/server.js:50-50 (registration)Registers the chatTools array containing the 'list_channels' tool definition with the MCP server.
registerTools(chatTools);