Skip to main content
Glama
mikusnuz

umami-mcp

add_team_user

Add a user to a team in Umami Analytics by specifying team ID, user ID, and role (team-owner or team-member) to manage team access and permissions.

Instructions

Add a user to a team

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
teamIdYesTeam UUID
userIdYesUser UUID to add
roleYesRole in the team: 'team-owner' or 'team-member'

Implementation Reference

  • The handler logic for 'add_team_user', which uses the UmamiClient to make a POST request to add a user to a team.
    server.tool(
      "add_team_user",
      "Add a user to a team",
      {
        teamId: z.string().describe("Team UUID"),
        userId: z.string().describe("User UUID to add"),
        role: z.string().describe("Role in the team: 'team-owner' or 'team-member'"),
      },
      async ({ teamId, userId, role }) => {
        const data = await client.call("POST", `/api/teams/${teamId}/users`, { userId, role });
        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