Skip to main content
Glama
mikusnuz

umami-mcp

run_report

Execute analytics reports for websites to analyze funnel, retention, UTM, goals, insights, revenue, journey, or attribution data.

Instructions

Execute a report by type and get results (funnel, retention, utm, goals, insights, revenue, journey, attribution)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesReport type to run
websiteIdYesWebsite UUID
parametersYesReport-specific parameters (varies by type)

Implementation Reference

  • The `run_report` tool is defined here using the MCP server tool registration, with its handler function implemented as an asynchronous callback that calls the Umami client.
    server.tool(
      "run_report",
      "Execute a report by type and get results (funnel, retention, utm, goals, insights, revenue, journey, attribution)",
      {
        type: z
          .enum(["funnel", "retention", "utm", "goals", "insights", "revenue", "journey", "attribution"])
          .describe("Report type to run"),
        websiteId: z.string().describe("Website UUID"),
        parameters: z
          .record(z.unknown())
          .describe("Report-specific parameters (varies by type)"),
      },
      async ({ type, websiteId, parameters }) => {
        const body: Record<string, unknown> = { websiteId, ...parameters };
        const data = await client.call("POST", `/api/reports/${type}`, body);
        return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
      }
    );

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/mikusnuz/umami-mcp'

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