experiment-detail
Retrieve detailed information about a specific A/B test experiment by providing the experiment ID for accurate analysis and insights.
Instructions
Retrieves detailed information for a specific A/B test experiment.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| experimentId | Yes |
Implementation Reference
- src/index.ts:51-60 (handler)The handler function for the 'experiment-detail' tool. It takes an experimentId and fetches the detailed experiment information from the API using WebClient.get, then returns it as JSON text content.async ({ experimentId }) => { return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/experiments/${experimentId}`)), }, ], }; },
- src/index.ts:48-50 (schema)The input schema for the 'experiment-detail' tool, requiring a numeric experimentId.{ experimentId: z.number(), },
- src/index.ts:46-61 (registration)The registration of the 'experiment-detail' tool on the MCP server, including name, description, schema, and handler function.'experiment-detail', 'Retrieves detailed information for a specific A/B test experiment.', { experimentId: z.number(), }, async ({ experimentId }) => { return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/experiments/${experimentId}`)), }, ], }; }, );