Compare companies on calendar quarters
compare_companies2 to 4 companies side by side, aligned on calendar quarters as Annalist Compare places their fiscal periods, so that companies whose fiscal years end in different months stand in the same quarter. Measures are ratio ids (corp.operating_margin, corp.roic, corp.revenue_growth, bank.roe; short names such as roic work) or statement items (revenue, net_income, total_assets, cfo). Ratios use the last 4 quarters where the ratio has them, else the quarter; a company that reports fiscal years only gives fiscal years. Each value gives the company's fiscal period, and each statement value its source document ids. Amounts stay in the currency of each company.
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>",
"measures": "<measures>"
},
"name": "compare_companies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | last calendar quarter, in the same forms | |
| from | No | first calendar quarter: CY2025 Q1, a year (2025) or an ISO date | |
| measures | Yes | 1 to 6 ratio ids or statement item keys, for example ["corp.operating_margin", "revenue"] | |
| quarters | No | the latest calendar quarters kept (default 8) | |
| companies | Yes | 2 to 4 company ids from search_companies | |
| frequency | No | the form of every ratio, in place of the last 4 quarters where a ratio has them; annual compares fiscal years |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| citation | No | ||
| measures | Yes | ||
| quarters | Yes | ||
| companies | Yes | ||
| truncated | Yes | ||
| conventions | No | ||
| quarters_matched | Yes | ||
| latest_common_quarter | No |