data-report-list
Fetch and manage A/B test data reports with the Hackle MCP server, enabling easy access and organization of performance metrics for analysis and insights.
Instructions
fetch data report list.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:227-237 (registration)Registers the 'data-report-list' MCP tool using server.tool. The tool has no input parameters (empty schema) and an inline async handler that calls WebClient.get('/api/v1/data-reports') to fetch the data report list and returns it as JSON-formatted text content.// Data report list tool server.tool('data-report-list', 'fetch data report list.', {}, async () => { return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/data-reports`)), }, ], }; });
- src/index.ts:228-237 (handler)The inline handler function that executes the core logic of the 'data-report-list' tool: fetches the list from the API endpoint '/api/v1/data-reports' using WebClient and wraps the JSON response in the required MCP content format.server.tool('data-report-list', 'fetch data report list.', {}, async () => { return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/data-reports`)), }, ], }; });