list_zoom_rooms
Retrieve a paginated list of Zoom Rooms by specifying page size, page number, and location ID using the Zoom API MCP Server for structured access to Zoom resources.
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_zoom_rooms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location_id | No | Location ID | |
| page_number | No | Page number | |
| page_size | No | Number of records returned |
Implementation Reference
- src/tools/zoom-rooms.js:13-25 (handler)The handler function for list_zoom_rooms that constructs query parameters and calls the Zoom API /rooms endpoint, handling response and errors.
handler: async ({ page_size, page_number, location_id }) => { try { const params = {}; if (page_size) params.page_size = page_size; if (page_number) params.page_number = page_number; if (location_id) params.location_id = location_id; const response = await zoomApi.get('/rooms', { params }); return handleApiResponse(response); } catch (error) { return handleApiError(error); } } - src/tools/zoom-rooms.js:8-12 (schema)Zod schema defining optional input parameters for pagination and filtering Zoom rooms.
schema: { page_size: z.number().min(1).max(300).optional().describe("Number of records returned"), page_number: z.number().min(1).optional().describe("Page number"), location_id: z.string().optional().describe("Location ID") }, - src/server.js:56-56 (registration)Registers the array of Zoom Rooms tools, including list_zoom_rooms, with the MCP server via the registerTools helper.
registerTools(zoomRoomsTools);