Skip to main content
Glama
hackle-io

hackle-mcp

Official
by hackle-io

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
NameRequiredDescriptionDefault
experimentIdYes

Implementation Reference

  • 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}`)),
          },
        ],
      };
    },
  • 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}`)),
            },
          ],
        };
      },
    );

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