Skip to main content
Glama
alexandresanlim

Mempool MCP Server

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
NameRequiredDescriptionDefault
poolIdYesThe poolId to get info for

Implementation Reference

  • 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"), },

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/alexandresanlim/mempool-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server