Skip to main content
Glama
mikusnuz

umami-mcp

update_website

Modify an existing website's configuration in Umami Analytics by updating its domain, display name, or share ID settings.

Instructions

Update an existing website's configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
websiteIdYesWebsite UUID
domainNoNew domain
nameNoNew display name
shareIdNoShare ID (set to null to remove)

Implementation Reference

  • The `update_website` tool is defined and implemented within the `registerWebsiteTools` function in `src/tools/websites.ts`. It takes website details as input and performs a POST request to update the website configuration.
    server.tool(
      "update_website",
      "Update an existing website's configuration",
      {
        websiteId: z.string().describe("Website UUID"),
        domain: z.string().optional().describe("New domain"),
        name: z.string().optional().describe("New display name"),
        shareId: z.string().optional().describe("Share ID (set to null to remove)"),
      },
      async ({ websiteId, domain, name, shareId }) => {
        const body: Record<string, unknown> = {};
        if (domain !== undefined) body.domain = domain;
        if (name !== undefined) body.name = name;
        if (shareId !== undefined) body.shareId = shareId;
        const data = await client.call("POST", `/api/websites/${websiteId}`, 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