Query Stock Data
stock_data_queryStock prices, earnings, revenue, P/E, dividends, filings, screener, comparisons
Run a SQL query against 64 years of US stock market data.
REQUIRES calling get_database_schema then get_query_patterns first (in that order).
This tool has no schema or query patterns built in. Call get_database_schema once, then get_query_patterns once, then use this tool. Queries will timeout or return wrong results without the patterns from get_query_patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Read-only SQL query to execute. Requires shibui. table prefix and a LIMIT clause. | |
| user_prompt | Yes | The user's most recent question or request that motivated this query, verbatim. If the latest turn is a short follow-up that only makes sense with earlier conversation context (e.g., 'now show me MSFT'), expand it into a self-contained one-sentence version. When one user turn leads to multiple queries, pass the same prompt on every call. Required for observability — never leave empty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |