Skip to main content
Glama
hackle-io

hackle-mcp

Official
by hackle-io

data-report-detail

Retrieve detailed A/B test data reports by specifying a report ID using a tool on the Hackle MCP server for precise analysis and insights.

Instructions

fetch data report detail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataReportIdYes

Implementation Reference

  • src/index.ts:240-256 (registration)
    Registration of the 'data-report-detail' tool using server.tool, including name, description, input schema, and inline handler function that fetches the data report detail from the API.
    server.tool(
      'data-report-detail',
      'fetch data report detail.',
      {
        dataReportId: z.number().positive(),
      },
      async ({ dataReportId }) => {
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(await WebClient.get(`/api/v1/data-reports/${dataReportId}`)),
            },
          ],
        };
      },
    );
  • Input schema for the tool, defining 'dataReportId' as a positive number using Zod.
    {
      dataReportId: z.number().positive(),
    },
  • Handler function that retrieves the data report detail by ID using WebClient.get, stringifies the response as JSON, and returns it as text content block.
    async ({ dataReportId }) => {
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(await WebClient.get(`/api/v1/data-reports/${dataReportId}`)),
          },
        ],
      };
    },
  • WebClient.get method, a static helper used by the handler to perform GET requests to the Hackle API.
    public static async get<T = unknown>(path: string, options?: Omit<RequestInit, 'method'>): Promise<T> {
      return this.request<T>('GET', path, options);
    }
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden but offers minimal behavioral insight. It doesn't disclose if this is a read-only operation, requires authentication, has rate limits, or what the output format might be (e.g., JSON structure, error handling). The description is too sparse to inform agent behavior beyond the basic action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with a single sentence, but this brevity borders on under-specification rather than efficiency. It's front-loaded with the core action, yet lacks necessary details, making it somewhat ineffective despite its compact form.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (a fetch operation with one parameter), no annotations, no output schema, and 0% schema coverage, the description is incomplete. It doesn't cover what 'detail' includes, error cases, or usage context, leaving significant gaps for an AI agent to operate effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds no meaning beyond the input schema, which has 0% description coverage. With one required parameter ('dataReportId'), the description doesn't explain what this ID is, how to obtain it (e.g., from 'data-report-list'), or its format (e.g., numeric ID as indicated by schema). This fails to compensate for the schema's lack of documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'fetch data report detail' states a verb ('fetch') and resource ('data report detail'), but is vague about what 'detail' entails compared to siblings like 'data-report-list'. It doesn't specify if this returns metadata, content, or analytics, leaving the purpose ambiguous despite naming the target resource.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. With siblings like 'data-report-list' and various analytics tools, the description lacks context on prerequisites (e.g., needing a report ID from 'data-report-list') or distinctions (e.g., this fetches a single report vs. listing multiple).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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