cerebrus_bundle
Retrieve combined technical analysis (5m to 1w), sentiment, and funding rates for any crypto coin in one API call, saving 20% vs individual endpoints.
Instructions
Get complete analysis bundle: multi-timeframe technical analysis (5m/15m/1h/4h/1d/1w) + sentiment + funding combined in one call. 20% discount vs individual endpoints. Cost: $0.04 USDC via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Coin ticker (e.g., BTC, ETH, SOL). Case-insensitive. | |
| timeframes | No | Comma-separated timeframes: 5m, 15m, 1h, 4h, 1d, 1w. Default: 1h,4h | 1h,4h |
Implementation Reference
- src/cerebrus_pulse_mcp/server.py:175-197 (registration)Tool registration for cerebrus_bundle in the list_tools() function. Defines the tool's name, description, and inputSchema (coin required, timeframes optional).
Tool( name="cerebrus_bundle", description=( "Get complete analysis bundle: multi-timeframe technical analysis " "(5m/15m/1h/4h/1d/1w) + sentiment + funding combined in one call. " "20% discount vs individual endpoints. Cost: $0.04 USDC via x402." ), inputSchema={ "type": "object", "properties": { "coin": { "type": "string", "description": "Coin ticker (e.g., BTC, ETH, SOL). Case-insensitive.", }, "timeframes": { "type": "string", "description": "Comma-separated timeframes: 5m, 15m, 1h, 4h, 1d, 1w. Default: 1h,4h", "default": "1h,4h", }, }, "required": ["coin"], }, ), - src/cerebrus_pulse_mcp/server.py:391-394 (handler)Handler for cerebrus_bundle inside call_tool(). Validates the coin parameter, gets optional timeframes (default: '1h,4h'), and makes a GET request to /bundle/{coin} with those query params.
elif name == "cerebrus_bundle": coin = _validate_coin(arguments["coin"]) timeframes = arguments.get("timeframes", "1h,4h") result = _api_get(f"/bundle/{coin}", params={"timeframes": timeframes}) - CLI registration for cerebrus_bundle (mapped to 'bundle') in _CLI_TOOLS, with the same path template /bundle/{coin} and params (coin required, timeframes optional with default '1h,4h').
# ── CLI (--json mode) ─────────────────────────────────────────────────────── # Maps CLI tool names to (api_path_template, param_specs). # param_specs: list of (name, required, type, default). _CLI_TOOLS: dict[str, tuple[str, list[tuple[str, bool, type, Any]]]] = { "list-coins": ("/coins", []), "health": ("/health", []), "pulse": ("/pulse/{coin}", [("coin", True, str, None), ("timeframes", False, str, "1h,4h")]), "sentiment": ("/sentiment", []), "funding": ("/funding/{coin}", [("coin", True, str, None), ("lookback_hours", False, int, 24)]), "bundle": ("/bundle/{coin}", [("coin", True, str, None), ("timeframes", False, str, "1h,4h")]), "screener": ("/screener", [("top_n", False, int, 30)]), "oi": ("/oi/{coin}", [("coin", True, str, None)]), "spread": ("/spread/{coin}", [("coin", True, str, None)]), "correlation": ("/correlation", []), "stress": ("/arb", [("limit", False, int, 10)]), "cex-dex": ("/cex-dex/{coin}", [("coin", True, str, None)]), "basis": ("/basis/{coin}", [("coin", True, str, None)]), "depeg": ("/depeg", []), "liquidations": ("/liquidations/{coin}", [("coin", True, str, None)]), }