get_node_status
Retrieve Bitcoin node status including chain information, sync progress, disk usage, active connections, and software version to monitor network health.
Instructions
Get Bitcoin network status: chain, height, sync progress, disk usage, connections, version. In hosted API mode, reflects the API server's node.
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:159-163 (handler)The tool `get_node_status` is implemented as a function decorated with `@mcp.tool()`. It calls the helper function `_get_status` (imported from `bitcoinlib_rpc.status`) using the RPC connection retrieved from `get_rpc()`.
@mcp.tool() def get_node_status() -> str: """Get Bitcoin network status: chain, height, sync progress, disk usage, connections, version. In hosted API mode, reflects the API server's node.""" status = _get_status(get_rpc()) return status.model_dump_json()