analyze_mempool
Analyze Bitcoin mempool to monitor transaction count, fee distribution, network congestion, and estimate next-block minimum fees for transaction planning.
Instructions
Analyze the mempool: tx count, fee buckets, congestion level, next-block minimum fee.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/bitcoin_mcp/server.py:292-296 (handler)The tool 'analyze_mempool' is registered using the @mcp.tool() decorator and its handler calls '_analyze_mempool' imported from 'bitcoinlib_rpc.mempool'.
@mcp.tool() def analyze_mempool() -> str: """Analyze the mempool: tx count, fee buckets, congestion level, next-block minimum fee.""" summary = _analyze_mempool(get_rpc()) return summary.model_dump_json()