analyze_portfolio
Calculate weighted ETF costs and yearly fees, then break down fund size, structure, and combined country, sector, and stock exposure for a portfolio.
Instructions
Analyse a list of ETFs: cost, fund size, structure and look-through exposure.
Give each position as {"isin": "...", "amount": 5000}. `amount` is the
money (any currency, used for weights and yearly cost) or a weight; give
it for every position or for none (equal weights). Use
`focus_countries` / `focus_sectors` (e.g. ["United States"],
["Technology"]) to get only those buckets. Named buckets are lower
bounds: justETF lumps the tail into "Other".
Args:
positions: List of {"isin": str, "amount": number (optional)}.
top_n: Buckets to return per breakdown when no focus is given.
focus_countries: Only return countries containing one of these names.
focus_sectors: Only return sectors containing one of these names.
refresh: Bypass the 24h cache.
Returns:
Weighted TER and yearly fees, fund size per ETF (with small-fund
flags), portfolio share by distribution/replication/domicile/
currency/provider/index, and combined exposure by country, sector
and top stocks with each ETF's contribution; or an `error`.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"positions": "<positions>"
},
"name": "analyze_portfolio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| refresh | No | ||
| positions | Yes | ||
| focus_sectors | No | ||
| focus_countries | No |