Skip to main content
Glama
hackle-io
by hackle-io

remote-config-list

Retrieve a paginated list of remote configurations from the Hackle MCP server, filtering by status or keyword to manage A/B test settings efficiently.

Instructions

Fetch Remote Config list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNumberNo
pageSizeNo
searchKeywordNo
statusNoACTIVE

Implementation Reference

  • src/index.ts:315-344 (registration)
    Registration of the 'remote-config-list' tool using server.tool(), which includes the tool name, description, input schema, and inline handler function.
    server.tool( 'remote-config-list', 'Fetch Remote Config list.', { pageNumber: z.number().optional().default(1), pageSize: z.number().optional().default(100), searchKeyword: z.string().optional(), status: z.enum(['ACTIVE', 'ARCHIVED']).optional().default('ACTIVE'), }, async ({ pageNumber = 1, pageSize = 100, searchKeyword = '', status = 'ACTIVE' }) => { const qs = stringify( { pageNumber, pageSize, searchKeyword, status, }, { addQueryPrefix: true }, ); return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/remote-configs${qs}`)), }, ], }; }, );
  • Input schema using Zod for the 'remote-config-list' tool, supporting pagination (pageNumber, pageSize), searchKeyword, and status filter.
    { pageNumber: z.number().optional().default(1), pageSize: z.number().optional().default(100), searchKeyword: z.string().optional(), status: z.enum(['ACTIVE', 'ARCHIVED']).optional().default('ACTIVE'), },
  • Handler function that constructs a query string from input params using 'qs.stringify', fetches the remote config list from Hackle API via WebClient.get, and returns the JSON-stringified response as MCP content.
    async ({ pageNumber = 1, pageSize = 100, searchKeyword = '', status = 'ACTIVE' }) => { const qs = stringify( { pageNumber, pageSize, searchKeyword, status, }, { addQueryPrefix: true }, ); return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/remote-configs${qs}`)), }, ], }; },

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