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
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| remoteConfigId | Yes | Remote config's id. |
Implementation Reference
- src/index.ts:523-533 (handler)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)), }, ], }; }, );
- src/index.ts:517-522 (schema)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)), }, ], }; }, );