analyze_stock
Compute key technical indicators for any stock, including SMA, EMA, and RSI, over a customizable lookback period.
Instructions
Compute common technical indicators for a stock over a lookback window.
Args:
symbol: Ticker symbol, e.g. AAPL.
period: Lookback window (see get_stock_history). Defaults to 6 months.
Returns the latest close alongside SMA(20), SMA(50), EMA(20) and RSI(14). Indicators
that lack enough history in the window are returned as null.
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": {
"symbol": "<symbol>"
},
"name": "analyze_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| period | No | 6mo |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||