Compare one XBRL concept across all companies
edgar_get_concept_across_companiesCompare one XBRL concept across SEC filers for a calendar period to screen peers or rank companies, returning sortable, paged results.
Instructions
WHAT: Cross-company query: one XBRL concept (Revenues, Assets, NetIncomeLoss) for one calendar period for every SEC filer that reported it, from the SEC frames API. Sortable and paged. WHEN: Free multi-company screening and peer comparison, such as the largest filers by total assets at the end of 2023, or net income of all filers in CY2023. WHEN NOT: For one company's time series use edgar_get_company_facts. For filings use edgar_list_filings. COST: Free. Direct sec.gov requests from this MCP server. No APIFY_TOKEN and no Apify billing. RETURNS: Ranked rows, one per filer. meta names the frame and its source_url. Errors: NOT_FOUND (no such concept, unit or period frame), SEC_FETCH_FAILED (retryable). BEHAVIOR: HTTPS only to www.sec.gov and data.sec.gov. User-Agent is "Fairquery info@getfairquery.com". At most 5 requests/second, shared by every free edgar_* tool. Redirects are refused. Responses are size-capped. The ticker map is cached for 6 hours. APIFY_TOKEN is not read. One frame download per call, plus the cached ticker map when companies is set. rank is assigned after the company filter and the sort, then limit/offset page those rows. PARAMETERS: period must match the concept. Flow items (Revenues, NetIncomeLoss) use a duration such as "CY2023" or "CY2023Q2". Balance-sheet items (Assets, Liabilities, StockholdersEquity) need an instant such as "CY2023Q4I". The wrong kind returns NOT_FOUND. Calendar periods are SEC-aligned approximations of each filer's fiscal period. concept, unit and taxonomy are case-sensitive and must exist together: money uses "USD" (the default), EPS uses "USD-per-shares", share counts use "shares", ratios use "pure". dei concepts need taxonomy "dei". companies filters the frame after download (ticker, CIK or name; unresolvable entries are skipped). rank 1 is the first row after the chosen sort. value_desc puts the largest value first. EXAMPLE: {"concept":"Assets","period":"CY2023Q4I","limit":10} -> the top 10 filers by total assets at the end of 2023.
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": {
"concept": "<concept>",
"period": "<period>"
},
"name": "edgar_get_concept_across_companies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Optional, one of "value_desc" | "value_asc" | "name", default "value_desc" (largest first); "name" = entity name A-Z | value_desc |
| unit | No | Optional, default "USD". Case-sensitive unit of measure: "USD", "USD-per-shares" (EPS), "shares", "pure" (ratios), or another currency code such as "EUR" | USD |
| limit | No | Optional page size: items to return, integer 1-500 (default 25). Example: 25 | |
| offset | No | Optional zero-based number of items to skip, integer 0-1000000 (default 0); pass nextOffset from the previous response, e.g. 100 | |
| period | Yes | Required. Calendar frame, pattern ^CY\d{4}(Q[1-4]I?)?$: "CY2023" = annual duration, "CY2023Q2" = quarterly duration, "CY2023Q4I" = instant at quarter end (balance-sheet items) | |
| concept | Yes | Required. Exact XBRL concept name, case-sensitive, e.g. "Assets", "Revenues", "NetIncomeLoss" | |
| taxonomy | No | Optional, default "us-gaap". One of "us-gaap", "ifrs-full", "dei", "srt" | us-gaap |
| companies | No | Optional, default omitted = all filers. 1-50 tickers, CIKs or name fragments to keep. Example: ["AAPL","MSFT","GOOGL"] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Tool-specific context (summary counts, cost notes, ...) | |
| count | Yes | Number of items in this page | |
| items | Yes | Result rows for this page | |
| total | Yes | Total items before paging | |
| offset | Yes | Offset of the first item in this page | |
| hasMore | Yes | True if more items exist after this page | |
| nextOffset | Yes | Offset to pass for the next page, or null |