get-mining-pools
Retrieve Bitcoin mining pool data to analyze network distribution and identify major participants in block production.
Instructions
Returns mining pools info
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-mining-pools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/interface/controllers/MiningToolsController.ts:17-26 (registration)Registers the 'get-mining-pools' MCP tool, including the inline handler function that delegates to MiningService.getMiningPools() and formats the response as text content.
private registerGetMiningPoolsHandler(): void { this.server.tool( "get-mining-pools", "Returns mining pools info", async () => { const text = await this.miningService.getMiningPools(); return { content: [{ type: "text", text }] }; } ); } - Helper method in MiningService that fetches mining pools data via RequestService and formats it using formatResponse.
async getMiningPools(): Promise<string> { const data = await this.requestService.getMiningPools(); return formatResponse<IMiningPoolsResponse[]>("Mining Pools", data); } - Core helper that performs the actual API request to retrieve mining pools data.
async getMiningPools(): Promise<IMiningPoolsResponse[] | null> { return this.client.makeRequest<IMiningPoolsResponse[]>(`mining/pools`); }