Compare financial metrics across companies
peer_compareCompare one to six SEC XBRL metrics for 2–15 US companies. Periods are aligned by actual end date (within 183 days for annual or 45 days for quarterly) to handle different fiscal calendars; the reference date and each row's actual period end are returned. Rankings are descending, skip missing values, and use competition ranks for ties. Available metrics: revenue, grossProfit, operatingIncome, netIncome, epsBasic, epsDiluted, totalAssets, currentAssets, totalLiabilities, currentLiabilities, longTermDebt, totalEquity, cashAndEquivalents, operatingCashFlow, capex, rdExpense, sharesOutstanding, dividendsPerShare, dividendsPaid, stockBasedCompensation, deferredRevenue, goodwill, intangibleAssets, depreciationAmortization, costOfGoodsSold, sellingGeneralAndAdministrative, interestExpense, otherNonoperatingIncomeExpense, pretaxIncome, incomeTaxExpense, liabilitiesAndEquity, assetImpairment, shortTermInvestments, weightedAverageDilutedShares, shareRepurchases, accountsReceivable, inventory, accountsPayable, propertyPlantEquipment, investingCashFlow, financingCashFlow, grossInterestIncome, netInterestIncome, noninterestIncome. There's no default metric — if the user's request doesn't name one (e.g. "compare Apple and Microsoft" with no metric specified), ask which they want before calling rather than guessing.
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": {
"tickers": "<tickers>",
"metrics": "<metrics>"
},
"name": "peer_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | annual | |
| metrics | Yes | ||
| tickers | Yes |