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

analytics-chart-list

Retrieve analytics chart lists for A/B test data with customizable filters like chart type, page size, and search keywords using Hackle API’s MCP server.

Instructions

fetch data analytics chart list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chartTypeNo
pageNumberNo
pageSizeNo
searchKeywordNo

Implementation Reference

  • Handler function that constructs query string from parameters and fetches the list of analytics charts from the API using WebClient.
    async ({ pageNumber = 1, pageSize = 100, searchKeyword = '', chartType }) => { const qs = stringify( { pageNumber, pageSize, searchKeyword, chartType, }, { addQueryPrefix: true }, ); return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/analytics/charts${qs}`)), }, ], }; },
  • Zod schema defining input parameters: pageNumber, pageSize, searchKeyword, and chartType.
    { pageNumber: z.number().optional().default(1), pageSize: z.number().optional().default(100), searchKeyword: z.string().optional(), chartType: z.enum(['FUNNEL', 'DATA_INSIGHT', 'RETENTION', 'USER_PATH']).optional(), },
  • src/index.ts:259-288 (registration)
    Tool registration call using McpServer.tool() method, including name, description, schema, and handler.
    server.tool( 'analytics-chart-list', 'fetch data analytics chart list.', { pageNumber: z.number().optional().default(1), pageSize: z.number().optional().default(100), searchKeyword: z.string().optional(), chartType: z.enum(['FUNNEL', 'DATA_INSIGHT', 'RETENTION', 'USER_PATH']).optional(), }, async ({ pageNumber = 1, pageSize = 100, searchKeyword = '', chartType }) => { const qs = stringify( { pageNumber, pageSize, searchKeyword, chartType, }, { addQueryPrefix: true }, ); return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/analytics/charts${qs}`)), }, ], }; }, );

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