get_portfolio
Retrieves comprehensive details of a saved portfolio, including allocation, metrics, and settings.
Instructions
Get detailed information about a stored portfolio.
Retrieves comprehensive information about a portfolio including its allocation, metrics, and settings.
Args: name: The portfolio name.
Returns: Dictionary containing full portfolio details, or error if not found.
Example:
info = get_portfolio(name="tech_stocks") print(f"Sharpe Ratio: {info['metrics']['sharpe_ratio']}")
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": {
"name": "<name>"
},
"name": "get_portfolio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||