Skip to main content
Glama
mikusnuz

umami-mcp

list_teams

Retrieve and filter teams from Umami Analytics with pagination, search queries, and sorting options for team management.

Instructions

List all teams

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based)
pageSizeNoResults per page (default 10)
queryNoSearch query to filter teams
orderByNoField to order by (e.g. 'name', 'createdAt')

Implementation Reference

  • The handler function for the "list_teams" MCP tool, which calls the Umami client to fetch team data from the /api/teams endpoint.
    async ({ page, pageSize, query, orderBy }) => {
      const data = await client.call("GET", "/api/teams", undefined, {
        page,
        pageSize,
        query,
        orderBy,
      });
      return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
    }
  • Registration of the "list_teams" tool using the McpServer instance within the registerTeamTools function.
    server.tool(
      "list_teams",
      "List all teams",
      {
        page: z.number().optional().describe("Page number (1-based)"),
        pageSize: z.number().optional().describe("Results per page (default 10)"),
        query: z.string().optional().describe("Search query to filter teams"),
        orderBy: z.string().optional().describe("Field to order by (e.g. 'name', 'createdAt')"),
      },

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