Skip to main content
Glama
mikusnuz

umami-mcp

get_user_websites

Retrieve websites accessible to a specific user for administrative oversight and permission management.

Instructions

Get the list of websites a user has access to (admin only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesUser UUID
pageNoPage number (1-based)
pageSizeNoResults per page
queryNoSearch query to filter websites

Implementation Reference

  • The 'get_user_websites' tool is registered and implemented within the 'registerUserTools' function in src/tools/users.ts. It takes 'userId' and optional pagination/filtering parameters as input and uses the UmamiClient to make a GET request to '/api/users/${userId}/websites'.
    server.tool(
      "get_user_websites",
      "Get the list of websites a user has access to (admin only)",
      {
        userId: z.string().describe("User UUID"),
        page: z.number().optional().describe("Page number (1-based)"),
        pageSize: z.number().optional().describe("Results per page"),
        query: z.string().optional().describe("Search query to filter websites"),
      },
      async ({ userId, page, pageSize, query }) => {
        const data = await client.call("GET", `/api/users/${userId}/websites`, undefined, {
          page,
          pageSize,
          query,
        });
        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