Skip to main content
Glama
mikusnuz

umami-mcp

get_session_properties

Retrieve custom properties attached to a specific analytics session using website and session UUIDs to access detailed session metadata.

Instructions

Get custom properties attached to a specific session

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
websiteIdYesWebsite UUID
sessionIdYesSession UUID

Implementation Reference

  • The tool 'get_session_properties' is registered and implemented in src/tools/sessions.ts. It calls the Umami API to fetch custom properties for a session.
    server.tool(
      "get_session_properties",
      "Get custom properties attached to a specific session",
      {
        websiteId: z.string().describe("Website UUID"),
        sessionId: z.string().describe("Session UUID"),
      },
      async ({ websiteId, sessionId }) => {
        const data = await client.call(
          "GET",
          `/api/websites/${websiteId}/sessions/${sessionId}/properties`
        );
        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