Skip to main content
Glama
hackle-io

hackle-mcp

Official
by hackle-io

remote-config-update-description

Modify remote config descriptions in both production and development environments for proper documentation and consistency across Hackle API A/B test configurations.

Instructions

Updates remote config's description. The change will be applied to both production and development environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
remoteConfigIdYesRemote config's id.

Implementation Reference

  • The tool handler that destructures input parameters and issues a PATCH request via WebClient to update the remote config's description, returning the JSON response as text content.
      async ({ body, remoteConfigId }) => {
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(await WebClient.patch(`/api/v1/remote-configs/${remoteConfigId}/description`, body)),
            },
          ],
        };
      },
    );
  • Zod input schema defining required parameters: remoteConfigId (positive number) and body object containing the new description string.
    {
      remoteConfigId: z.number().positive().describe("Remote config's id."),
      body: z.object({
        description: z.string(),
      }),
    },
  • src/index.ts:514-534 (registration)
    Tool registration call to server.tool() with name, description, schema, and inline handler implementation.
    server.tool(
      'remote-config-update-description',
      "Updates remote config's description. The change will be applied to both production and development environment.",
      {
        remoteConfigId: z.number().positive().describe("Remote config's id."),
        body: z.object({
          description: z.string(),
        }),
      },
      async ({ body, remoteConfigId }) => {
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(await WebClient.patch(`/api/v1/remote-configs/${remoteConfigId}/description`, body)),
            },
          ],
        };
      },
    );

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