Skip to main content
Glama
mikusnuz

umami-mcp

list_users

Retrieve and manage user accounts with pagination, search, and sorting options for administrative oversight.

Instructions

List all users (admin only)

Input Schema

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

Implementation Reference

  • The handler implementation for the list_users tool, which calls the Umami API GET /api/users endpoint.
    async ({ page, pageSize, query, orderBy }) => {
      const data = await client.call("GET", "/api/users", undefined, {
        page,
        pageSize,
        query,
        orderBy,
      });
      return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
    }
  • The tool registration and schema definition for list_users.
    server.tool(
      "list_users",
      "List all users (admin only)",
      {
        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 users"),
        orderBy: z.string().optional().describe("Field to order by (e.g. 'username', '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