Skip to main content
Glama
springwq

Kayzen Analytics MCP Server

by springwq

list_reports

Retrieve and display available advertising campaign reports from Kayzen Analytics to access performance data and insights for analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler and registration for the 'list_reports' MCP tool. It defines an empty input schema, executes kayzenClient.listReports(), formats the result as JSON text content, and handles errors by returning an error message.
    server.tool( "list_reports", {}, async () => { try { const result = await kayzenClient.listReports() as ReportListResponse; return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return { content: [{ type: "text", text: `Error listing reports: ${errorMessage}` }], isError: true }; } } );
  • TypeScript interface used to type the response from the listReports API call in the handler.
    interface ReportListResponse { reports: Array<{ id: string; name: string; type: string; }>; }
  • Supporting method in KayzenClient class that makes the authenticated GET request to the '/reports' endpoint to fetch the list of reports.
    async listReports() { return this.makeRequest('GET', '/reports'); }

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/springwq/kayzen-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server