get-mining-pool
Fetch detailed information about a specific Bitcoin mining pool by providing its poolId, enabling data-driven insights into pool activities on the Mempool MCP Server.
Instructions
Returns info for a specific mining pool
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poolId | Yes | The poolId to get info for |
Implementation Reference
- src/interface/controllers/MiningToolsController.ts:28-39 (registration)Registers the 'get-mining-pool' tool with the MCP server. Includes input schema (poolId: string) and thin handler that delegates to MiningService.getMiningPool, formatting the result as text content.private registerGetMiningPoolHandler(): void { this.server.tool( "get-mining-pool", "Returns info for a specific mining pool", { poolId: z.string().describe("The poolId to get info for"), }, async ({ poolId }) => { const text = await this.miningService.getMiningPool({ poolId }); return { content: [{ type: "text", text }] }; } );
- Core handler implementation: performs the actual API request to retrieve mining pool data for the given poolId using the IApiClient.async getMiningPool({ poolId }: { poolId: string }): Promise<IMiningPoolResponse | null> { return this.client.makeRequest<IMiningPoolResponse>(`mining/pool/${poolId}`); }
- Application service handler: fetches raw data from MiningRequestService and formats it into a string response using formatResponse.async getMiningPool({ poolId }: { poolId: string }): Promise<string> { const data = await this.requestService.getMiningPool({ poolId }); return formatResponse<IMiningPoolResponse>("Mining Pool", data); }
- Input schema definition for the tool using Zod: requires a 'poolId' string parameter.{ poolId: z.string().describe("The poolId to get info for"), },