get_risk_metrics
Analyze token risk by calculating volatility, VaR, max drawdown, and other metrics using token address and blockchain network data.
Instructions
Get comprehensive risk metrics for a token.
Args: token_address: The token contract address (0x...) chain: Blockchain network
Returns: Volatility, VaR, max drawdown, and other risk metrics.
Price: $0.40
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_address | Yes | ||
| chain | No | ethereum |
Implementation Reference
- coinrailz_mcp/__init__.py:445-461 (handler)The tool 'get_risk_metrics' is defined and registered using the @mcp.tool() decorator. It calls the 'risk-metrics' endpoint via 'call_coinrailz_service'.
@mcp.tool() async def get_risk_metrics(token_address: str, chain: str = "ethereum") -> str: """ Get comprehensive risk metrics for a token. Args: token_address: The token contract address (0x...) chain: Blockchain network Returns: Volatility, VaR, max drawdown, and other risk metrics. Price: $0.40 """ payload = {"tokenAddress": token_address, "chain": chain} result = await call_coinrailz_service("risk-metrics", payload) return json.dumps(result, indent=2)