Skip to main content
Glama
hackle-io
by hackle-io

stickiness-series

Analyze user engagement by retrieving time-series data on return visit frequency. Choose weekly or monthly units to track stickiness trends over time using Hackle MCP server.

Instructions

Retrieves time-series data of user stickiness (return visit frequency). Available in weekly and monthly units.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoEnd date in YYYY-MM-DD format.
unitYes

Implementation Reference

  • src/index.ts:206-225 (registration)
    Registration of the 'stickiness-series' tool, including the handler function that fetches stickiness series data from the Hackle API endpoint using WebClient.get with unit and date query parameters.
    server.tool( 'stickiness-series', 'Retrieves time-series data of user stickiness (return visit frequency). Available in weekly and monthly units.', { unit: z.enum(['WEEK', 'MONTH']), date: z.string().optional().describe('End date in YYYY-MM-DD format.'), }, async ({ unit = 'WEEK', date = '' }) => { const qs = stringify({ unit, date }, { addQueryPrefix: true }); return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/workspaces/auto-metrics/stickiness-series${qs}`)), }, ], }; }, );
  • Handler function executing the tool logic: builds query string from inputs and retrieves JSON data from the stickiness-series API endpoint via WebClient.
    async ({ unit = 'WEEK', date = '' }) => { const qs = stringify({ unit, date }, { addQueryPrefix: true }); return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/workspaces/auto-metrics/stickiness-series${qs}`)), }, ], }; },
  • Input schema using Zod: unit enum ['WEEK', 'MONTH'] (default 'WEEK'), optional date string.
    { unit: z.enum(['WEEK', 'MONTH']), date: z.string().optional().describe('End date in YYYY-MM-DD format.'), },
  • WebClient.get static method used by the handler to perform HTTP GET request to the API.
    public static async get<T = unknown>(path: string, options?: Omit<RequestInit, 'method'>): Promise<T> { return this.request<T>('GET', path, options); }

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/hackle-io/hackle-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server