Skip to main content
Glama

get_pi_cycle_top

Identifies Bitcoin market cycle peaks by analyzing the 111DMA and 2x350DMA moving average crossovers, helping traders recognize potential top signals based on historical patterns.

Instructions

The Pi Cycle Top indicator uses the 111DMA and 2x350DMA to identify Bitcoin market tops. When the 111DMA crosses above the 2x350DMA, it historically typically signals a cycle peak within about 3 days, reflecting Bitcoin's long-term cyclical behavior

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that implements the 'get_pi_cycle_top' tool by fetching data from the Desk3 API endpoint for BTC Pi Cycle Top indicator.
    async def get_pi_cycle_top() -> dict[str, Any]: """ Get BTC Pi Cycle Top indicator data. :return: Pi Cycle Top indicator data using 111DMA and 2x350DMA to identify Bitcoin market tops """ url = 'https://mcp.desk3.io/v1/market/pi-cycle-top' try: return request_api('get', url) except Exception as e: raise RuntimeError(f"Failed to fetch Pi Cycle Top indicator data: {e}")
  • Registration of the 'get_pi_cycle_top' tool in the list_tools handler, including its name, description, and empty input schema (no parameters required).
    types.Tool( name="get_pi_cycle_top", description="The Pi Cycle Top indicator uses the 111DMA and 2x350DMA to identify Bitcoin market tops. When the 111DMA crosses above the 2x350DMA, it historically typically signals a cycle peak within about 3 days, reflecting Bitcoin's long-term cyclical behavior", inputSchema={ "type": "object", "properties": {}, "required": [], }, ),
  • The tool dispatcher in call_tool that handles invocation of 'get_pi_cycle_top' by calling the handler function and returning JSON-formatted response.
    case "get_pi_cycle_top": try: data = await get_pi_cycle_top() return [ types.TextContent( type="text", text=json.dumps(data, indent=2), ) ] except Exception as e: raise RuntimeError(f"Failed to fetch Pi Cycle Top indicator data: {e}")

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/desk3/cryptocurrency-mcp-server'

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