Safe-haven analysis
analyze_safe_havenRank currencies by a 0–100 safe-haven score that combines low volatility, shallow drawdown, and 2008-crisis resilience. Use for "which currency holds up in a crisis" questions. Provide currencies to score specific codes, or omit to rank the liquid-fiat pool. Precious metals are not supported. Use analyze_volatility for pure dispersion and analyze_drawdown for peak-to-trough loss. Defaults: window from 2007-01-01 (or 20 years before to), base USD, limit 10. Returns { base, from, to, crisis, results[] }. Returns an error when no rate data is available for the window. Requires a signed-in connection and the Growth plan or higher; each successful call bills 1 API request.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_safe_haven"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end YYYY-MM-DD (UTC). Defaults to today. | |
| base | No | Base currency to measure against (3-letter ISO 4217). Defaults to USD. | |
| from | No | Window start YYYY-MM-DD (UTC). Defaults to 2007-01-01 (spans the 2008 crisis + COVID), or to 20 years before `to` when that is later. | |
| limit | No | How many to return (default 10, max 50). | |
| currencies | No | Comma-separated currencies to score, e.g. CHF,JPY. OMIT to rank the liquid-fiat safe-haven pool (precious metals are not supported). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| base | Yes | ||
| from | Yes | ||
| crisis | Yes | ||
| results | Yes | ||
| universe | No |