get_stock_price
Stock price for a listed company: latest close or a historical series.
Supply ticker or company_name (at least one).
Mode is automatic:
Latest (
days=0and no dates, default): most recent completed- session close via web search, withfreshness_status(live/recent/stale),is_usable_for_live_quote,age_secondsandage_trading_days. Cached forprefer_cache_seconds;force_refresh=truebypasses. Withrequire_live=truea stale result fails withfailure_kind="stale_price"andbest_observation.History (
days>0orstart_date/end_dateas YYYY-MM-DD, dates take precedence): daily closes from Clarifo's database (T-1, up to 1825 days) asseriesof{date, close, volume}plussummary(total_return_pct, high/low,significant_moves>= 5 %).
Chart: per the server "Charts" guidance; in ChatGPT call render_chart(source_tool="get_stock_price", source_args=, output="python").
To explain a move in a window, combine with company_events,
search_filings and search_filing_content for those dates.
Args: share_class: Pick a share class where a company lists several.
Returns (latest): {ticker, price, currency, trading_date, source, freshness_status, ...}; (history): {company, ticker, currency, period, summary, series}. Error: {"error", "failure_kind"}.
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": "get_stock_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| ticker | No | ||
| end_date | No | ||
| start_date | No | ||
| share_class | No | ||
| company_name | No | ||
| require_live | No | ||
| force_refresh | No | ||
| prefer_cache_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||