compute_screening_metrics
Computes financial health metrics from SEC filings: revenue growth, margins, leverage, liquidity, interest coverage, and operating cash flow, plus red-flag analysis with data quality caveats.
Instructions
The screen result, computed IN CODE (not by the model): revenue CAGR & YoY
growth, gross/operating/net margins, total debt, debt/equity, debt/EBITDA,
current ratio, interest coverage, EBITDA and latest operating cash flow —
PLUS flags (code-detected red flags such as negative equity, weak
liquidity, high leverage, cash burn, stale data, and net income that is
positive while the operating business loses money) and data_quality.
Read this carefully before writing anything:
Every metric has a
meaningfulboolean and acaveat. If meaningful=false, DO NOT quote the number — state the caveat instead (e.g. a debt/equity of -417x really just means equity is negative).flagsis the authoritative list of concerns. Report every high- and medium-severity flag. Do not invent flags that are not in the list, and do not suppress ones that are.Do not recompute or round-trip any arithmetic yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| years | No |