Skip to main content
Glama
hackle-io

hackle-mcp

Official
by hackle-io

in-app-message-list

Retrieve a paginated list of in-app messages with search functionality to locate messages by name, description, or campaign key, enabling efficient management of A/B test messages.

Instructions

Fetches a paginated list of in-app messages with search functionality.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNumberNo
pageSizeNo
searchKeywordNoname, description, or campaignKey of an in-app message.

Implementation Reference

  • The handler function for the 'in-app-message-list' tool. It constructs query parameters for pagination and search, fetches the list from the Hackle API using WebClient.get, stringifies the JSON response, and returns it as text content.
      async ({ pageNumber = 1, pageSize = 100, searchKeyword = '' }) => {
        const qs = stringify(
          {
            pageNumber,
            pageSize,
            searchKeyword,
          },
          { addQueryPrefix: true },
        );
    
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(await WebClient.get(`/api/v1/in-app-messages${qs}`)),
            },
          ],
        };
      },
    );
  • Zod input schema defining optional pagination (pageNumber, pageSize) and searchKeyword parameters for the tool.
    {
      pageNumber: z.number().optional().default(1),
      pageSize: z.number().optional().default(100),
      searchKeyword: z.string().optional().describe('name, description, or campaignKey of an in-app message.'),
    },
  • src/index.ts:64-91 (registration)
    The complete server.tool registration for the 'in-app-message-list' tool, including name, description, input schema, and inline handler function.
    server.tool(
      'in-app-message-list',
      'Fetches a paginated list of in-app messages with search functionality.',
      {
        pageNumber: z.number().optional().default(1),
        pageSize: z.number().optional().default(100),
        searchKeyword: z.string().optional().describe('name, description, or campaignKey of an in-app message.'),
      },
      async ({ pageNumber = 1, pageSize = 100, searchKeyword = '' }) => {
        const qs = stringify(
          {
            pageNumber,
            pageSize,
            searchKeyword,
          },
          { addQueryPrefix: true },
        );
    
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(await WebClient.get(`/api/v1/in-app-messages${qs}`)),
            },
          ],
        };
      },
    );
  • The WebClient.get method used by the tool handler to perform the HTTP GET request 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);
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions pagination and search, which are helpful behavioral traits, but lacks critical details like authentication requirements, rate limits, error handling, or what the response format looks like. For a list tool with no annotations, this leaves significant gaps.

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

Conciseness5/5

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

The description is a single, efficient sentence that front-loads key information ('fetches a paginated list of in-app messages with search functionality'). Every word earns its place, with no redundancy or unnecessary elaboration.

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 no annotations, no output schema, and low schema description coverage (33%), the description is incomplete. It covers basic purpose but lacks details on behavior, response format, error cases, or usage context, which are essential for a tool with 3 parameters and search functionality.

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

Parameters3/5

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

Schema description coverage is 33% (only 'searchKeyword' has a description). The description adds value by implying pagination ('paginated list') and search functionality, which aligns with the parameters, but doesn't explain semantics beyond what's minimally inferred. With low schema coverage, it partially compensates but not fully, warranting a baseline score.

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

Purpose4/5

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

The description clearly states the verb ('fetches') and resource ('paginated list of in-app messages'), and specifies 'with search functionality' which adds useful detail. However, it doesn't explicitly differentiate from sibling tools like 'in-app-message-detail' or 'push-message-list', which would require a 5.

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?

The description provides no guidance on when to use this tool versus alternatives. There are multiple sibling list tools (e.g., 'analytics-chart-list', 'data-report-list', 'push-message-list') and detail tools, but no indication of context, prerequisites, or exclusions for this specific tool.

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