remote-config-detail
Fetch detailed information for a specific remote configuration using the provided remoteConfigId, enabling efficient querying and management of A/B test data on the Hackle MCP server.
Instructions
Fetch remote config detail.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remoteConfigId | Yes | Remote config's id. You can get this information by using Remote Config List Tool. |
Implementation Reference
- src/index.ts:356-365 (handler)The handler function that fetches the remote config detail via WebClient.get and returns JSON-stringified response as text content.async ({ remoteConfigId }) => { return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/remote-configs/${remoteConfigId}`)), }, ], }; },
- src/index.ts:350-355 (schema)Zod input schema defining remoteConfigId as a positive number.{ remoteConfigId: z .number() .positive() .describe("Remote config's id. You can get this information by using Remote Config List Tool."), },
- src/index.ts:347-366 (registration)Registers the remote-config-detail tool on the McpServer with name, description, input schema, and handler.server.tool( 'remote-config-detail', 'Fetch remote config detail.', { remoteConfigId: z .number() .positive() .describe("Remote config's id. You can get this information by using Remote Config List Tool."), }, async ({ remoteConfigId }) => { return { content: [ { type: 'text', text: JSON.stringify(await WebClient.get(`/api/v1/remote-configs/${remoteConfigId}`)), }, ], }; }, );