ETF cost calculator
etf_costEstimates the dollar cost of holding an ETF: expense ratio over a holding period plus the bid-ask spread paid when buying and later selling. Same math as https://www.vistashares.com/etf-cost-calculator/.
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": "etf_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | No | Holding period, in years. Accepts 1 to 50; default 5. | |
| amount | No | Amount invested, in dollars. Accepts 0 to 1000000000; default 100000. | |
| spread_pct | No | Round-trip bid-ask spread, in percent. Accepts 0 to 5; default 0.1. | |
| expense_ratio_pct | No | Expense ratio, in percent per year. Accepts 0 to 5; default 0.5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| page | Yes | ||
| inputs | Yes | ||
| total_cost | Yes | ||
| explanation | Yes | ||
| spread_cost | Yes | ||
| expense_ratio_cost | Yes |