compare_companies
Compare 2-5 companies side by side on key financial metrics (revenue, margins, net income, EPS, ROE / ROA, cash flow). Covers US and Nordic (HEL, STO) companies and can mix them. Figures are as reported (US GAAP / IFRS), never the companies' adjusted measures.
Args:
companies: 2-5 names or tickers (first 5 used), e.g. ["NVDA", "AMD"].
years: Annual years per company (default 3). Annual mode only.
period_type: "annual" (default, fiscal years), "quarterly"
(one quarter per company) or "ltm" (trailing twelve months to
each company's latest quarter: the fairest like-for-like view when
fiscal years end in different months).
year / quarter: Pin quarterly mode (quarter 1-4; setting it forces
quarterly). Read as each company's own fiscal quarter, unless
align="calendar".
align: Quarterly mode. "calendar" (the default when no quarter is
pinned) compares the fiscal quarters that fall in the same calendar
quarter (Apple's fiscal Q3 to June with Microsoft's fiscal Q4 to
June); "fiscal" takes each company's fiscal quarter as numbered.
currency: ISO code (e.g. "USD") to convert every amount at ECB
rates (period average for flows, period end for the balance
sheet). Omit to keep each company's reporting currency.
Returns:
companies[] with currency, latest_year (computed margins and
ROE / ROA), latest_quarter, by_year, changes (per KPI:
yoy_pct / cagr_pct for amounts, yoy_pp / change_pp for margins; quote
them, never compute your own) and latest_price (latest
stored close, typically T-1, with freshness fields; use
get_stock_price for a live quote); plus kpis, not_found,
no_data_for_period (resolved, but no data for that quarter) and
computations (formulas; every margin and ratio is in percent,
computed from the amounts shown). Each year carries _provenance: cite
its citation_markdown URL as a numbered link next to those figures. Surface
fiscal_calendar_warning (period_end dates more than 45 days apart)
and data_quality_warnings, including mixed_currency_comparison:
without currency figures are not converted, so state each
currency or compare ratios.
Chart: per the server "Charts" guidance (a peer trend line needs 3+ annual periods; quarterly mode has nothing to chart); in ChatGPT call render_chart(source_tool="compare_companies", source_args=, output="python").
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": {
"companies": "<companies>"
},
"name": "compare_companies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | ||
| align | No | ||
| years | No | ||
| quarter | No | ||
| currency | No | ||
| companies | Yes | ||
| period_type | No | annual |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||