Skip to main content
Glama

get_chain_tips

Retrieve Bitcoin blockchain tips to identify active chains, forks, and stale branches for detecting chain splits.

Instructions

Get chain tips: active chain, forks, and stale branches. Useful for detecting chain splits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The `get_chain_tips` tool is defined as an MCP tool using the `@mcp.tool()` decorator. It calls `get_rpc().getchaintips()` to interact with the Bitcoin node and returns the result as a JSON string.
    def get_chain_tips() -> str:
        """Get chain tips: active chain, forks, and stale branches. Useful for detecting chain splits."""
        tips = get_rpc().getchaintips()
        return json.dumps(tips)

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/Bortlesboat/bitcoin-mcp'

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