compare_swaps
Identifies optimal portfolio swaps by comparing scored tickers against current holdings, recommending swaps when a candidate's score exceeds the holding's score by a set threshold.
Instructions
Generate pairwise swap recommendations from scored tickers.
Compares each holding against each candidate. Recommends a swap when the candidate's composite score exceeds the holding's score by >= threshold.
Args: scores_json: JSON array of score dicts from score_tickers tool. holdings: Comma-separated current holding tickers. candidates: Comma-separated candidate tickers. threshold: Minimum score delta to recommend a swap (default 15).
Returns: JSON with swap recommendations and full scorecard ranking.
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": {
"scores_json": "<scores_json>",
"holdings": "<holdings>",
"candidates": "<candidates>"
},
"name": "compare_swaps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scores_json | Yes | ||
| holdings | Yes | ||
| candidates | Yes | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |