get_daily_report
Generate daily reports for Zoom API usage by specifying year and month inputs. Integrated with the Zoom API MCP Server, it ensures accurate and validated data retrieval for detailed insights.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | Yes | Month | |
| year | Yes | Year |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"month": {
"description": "Month",
"maximum": 12,
"minimum": 1,
"type": "number"
},
"year": {
"description": "Year",
"type": "number"
}
},
"required": [
"year",
"month"
],
"type": "object"
}
Implementation Reference
- src/tools/reports.js:12-21 (handler)The async handler function for the 'get_daily_report' tool. It fetches the daily usage report from the Zoom API endpoint `/report/daily` using the provided year and month parameters, and handles the API response or errors using utility functions.handler: async ({ year, month }) => { try { const response = await zoomApi.get(`/report/daily`, { params: { year, month } }); return handleApiResponse(response); } catch (error) { return handleApiError(error); } }
- src/tools/reports.js:8-11 (schema)Zod schema defining the input parameters for the 'get_daily_report' tool: year (number) and month (number between 1 and 12).schema: { year: z.number().describe("Year"), month: z.number().min(1).max(12).describe("Month") },
- src/server.js:54-54 (registration)Registers the 'reportsTools' array, which includes the 'get_daily_report' tool, with the MCP server by calling the registerTools utility function.registerTools(reportsTools);