list_reports
Retrieve and manage saved analytics reports with pagination and sorting options for website data analysis.
Instructions
List all saved reports
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based) | |
| pageSize | No | Results per page | |
| orderBy | No | Field to order by |
Implementation Reference
- src/tools/reports.ts:6-22 (handler)The `list_reports` tool registration and handler implementation.
server.tool( "list_reports", "List all saved reports", { page: z.number().optional().describe("Page number (1-based)"), pageSize: z.number().optional().describe("Results per page"), orderBy: z.string().optional().describe("Field to order by"), }, async ({ page, pageSize, orderBy }) => { const data = await client.call("GET", "/api/reports", undefined, { page, pageSize, orderBy, }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );