Skip to main content
Glama
mikusnuz

umami-mcp

update_report

Modify an existing analytics report in Umami by updating its name, type, description, or parameters to reflect current data analysis needs.

Instructions

Update an existing saved report

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reportIdYesReport UUID
websiteIdNoWebsite UUID
nameNoReport name
typeNoReport type
descriptionNoReport description
parametersNoReport-specific parameters (JSON object)

Implementation Reference

  • The update_report tool is defined and implemented directly within the registerReportTools function in src/tools/reports.ts. It uses the MCP server instance to register the tool and handles the API call to update a report.
    server.tool(
      "update_report",
      "Update an existing saved report",
      {
        reportId: z.string().describe("Report UUID"),
        websiteId: z.string().optional().describe("Website UUID"),
        name: z.string().optional().describe("Report name"),
        type: z
          .enum(["funnel", "retention", "utm", "goals", "insights", "revenue", "journey", "attribution"])
          .optional()
          .describe("Report type"),
        description: z.string().optional().describe("Report description"),
        parameters: z
          .record(z.unknown())
          .optional()
          .describe("Report-specific parameters (JSON object)"),
      },
      async ({ reportId, websiteId, name, type, description, parameters }) => {
        const body: Record<string, unknown> = {};
        if (websiteId !== undefined) body.websiteId = websiteId;
        if (name !== undefined) body.name = name;
        if (type !== undefined) body.type = type;
        if (description !== undefined) body.description = description;
        if (parameters !== undefined) body.parameters = parameters;
        const data = await client.call("POST", `/api/reports/${reportId}`, 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