Skip to main content
Glama

Get XBRL financial facts for a company

edgar_get_company_facts
Read-onlyIdempotent

Get reported XBRL financial data for one SEC company: list available concepts or fetch values such as Assets, Revenues, and NetIncomeLoss, filtered by form or period.

Instructions

Get reported XBRL financial data (us-gaap, ifrs-full, dei, ...) for one company from the SEC companyfacts API, e.g. Assets, Revenues, NetIncomeLoss, EarningsPerShareDiluted. Two modes: (1) omit concepts to LIST the concepts the company reports (name, label, units, number of values) so you can pick exact names; (2) pass concepts to get their time-series values, newest first, optionally filtered by form (10-K/10-Q), fiscal period or date. Use edgar_get_concept_across_companies to compare one concept across many companies. Behavior: GET to data.sec.gov (throttled to <=5 requests/s). Values are as reported, so the same period can appear in several filings (see dedupe). RETURNS: list mode = one row per concept (units, value count); values mode = one row per reported value (start is null for instant concepts). Errors: COMPANY_NOT_FOUND, NOT_FOUND (no XBRL data), SEC_FETCH_FAILED (retryable). WHEN NOT TO USE: for filing documents/text use edgar_list_filings + edgar_get_filing_document; many companies at once -> edgar_get_concept_across_companies (free, one concept) or edgar_batch_export (paid). COST: free - direct sec.gov requests from this MCP server, no APIFY_TOKEN, no Apify billing. PARAMETERS: concepts switches the mode: omitted/empty = list mode (only taxonomy and search apply; forms, fiscalPeriod, since and dedupe are ignored), non-empty = values mode (search is ignored). Concept names are case-sensitive and must match exactly as listed (e.g. "NetIncomeLoss", not "netincome"); names the company never reported come back in meta.missing_concepts instead of failing. Many companies report revenue as "RevenueFromContractWithCustomerExcludingAssessedTax" rather than "Revenues", so run list mode with search "revenue" first. taxonomy applies in both modes. In values mode the filters combine with AND: forms matches the form of the filing that reported the value (["10-K"] = annual reports), fiscalPeriod matches fp ("FY" = full year; "Q4" is rarely reported separately), since compares the period end date. dedupe=true keeps one value per concept/unit/start-end period (the latest filed, i.e. restated) - set false to see every filing's figure. Rows are sorted by period end, newest first, then paged with limit/offset. EXAMPLE: {"company":"MSFT","concepts":["Revenues"],"fiscalPeriod":"FY","limit":5} -> 5 newest annual Revenues values in USD.

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": {
      "company": "<company>"
    },
    "name": "edgar_get_company_facts"
  }
}

Input Schema

NameRequiredDescriptionDefault
formsNoOptional, values mode only, default all forms. Form types of the reporting filing (case-insensitive), e.g. ["10-K"] for annual or ["10-Q"] for quarterly figures
limitNoOptional page size: items to return, integer 1-500 (default 50). Example: 10
sinceNoOptional, values mode only. Keep values whose period end date >= this date, format YYYY-MM-DD, e.g. "2021-01-01"
dedupeNoOptional boolean, values mode only, default true = one value per concept/unit/period (latest filed); false = every reported value incl. repeats from later filings
offsetNoOptional zero-based number of items to skip, integer >= 0 (default 0); pass nextOffset from the previous response, e.g. 20
searchNoOptional, list mode only. Case-insensitive substring matched against concept name or label. Example: "revenue"
companyYesRequired, 1-200 chars. Ticker ("AAPL", case-insensitive), CIK of 1-10 digits ("320193" or "0000320193"; any SEC filer, even without a ticker) or registrant-name fragment ("Apple"; the first SEC ticker-map match is used). Call edgar_resolve_company first if a name is ambiguous.
conceptsNoOptional; omit = list mode. 1-25 exact, case-sensitive XBRL concept names = values mode. Example: ["Revenues","NetIncomeLoss","Assets"]
taxonomyNoOptional, default omitted = all taxonomies. Exact taxonomy key: "us-gaap", "ifrs-full", "dei" or "srt". Example: "us-gaap"
fiscalPeriodNoOptional, values mode only, one of "FY" | "Q1" | "Q2" | "Q3" | "Q4"; default all periods. Example: "FY"

Output Schema

NameRequiredDescriptionDefault
metaNoTool-specific context (company, source_url, ...)
countYesNumber of items in this page
itemsYesResult rows for this page
totalYesTotal items matching the filters (before paging)
offsetYesOffset of the first item in this page
hasMoreYesTrue if more items exist after this page
nextOffsetYesOffset to pass for the next page, or null

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv1.2.2
    • changedInput schema / properties / company / description
      Previous value: -"Ticker (\"AAPL\"), CIK (\"320193\", zero-padding optional) or company name fragment (\"Apple\"); best match is used. Call edgar_resolve_company first if the name is ambiguous."New value: +"Required, 1-200 chars. Ticker (\"AAPL\", case-insensitive), CIK of 1-10 digits (\"320193\" or \"0000320193\"; any SEC filer, even without a ticker) or registrant-name fragment (\"Apple\"; the first SEC ticker-map match is used). Call edgar_resolve_company first if a name is ambiguous."
    • changedInput schema / properties / concepts / description
      Previous value: -"Exact concept names, e.g. [\"Revenues\",\"NetIncomeLoss\"]. Omit to list available concepts."New value: +"Optional; omit = list mode. 1-25 exact, case-sensitive XBRL concept names = values mode. Example: [\"Revenues\",\"NetIncomeLoss\",\"Assets\"]"
    • changedInput schema / properties / dedupe / description
      Previous value: -"Values mode: keep one value per concept/unit/period (latest filed). Default true."New value: +"Optional boolean, values mode only, default true = one value per concept/unit/period (latest filed); false = every reported value incl. repeats from later filings"
    • changedInput schema / properties / fiscalPeriod / description
      Previous value: -"Values mode: keep only this fiscal period"New value: +"Optional, values mode only, one of \"FY\" | \"Q1\" | \"Q2\" | \"Q3\" | \"Q4\"; default all periods. Example: \"FY\""
    • changedInput schema / properties / forms / description
      Previous value: -"Values mode only: keep values reported in these form types (case-insensitive), e.g. [\"10-K\"] for annual or [\"10-Q\"] for quarterly. Omit for all forms."New value: +"Optional, values mode only, default all forms. Form types of the reporting filing (case-insensitive), e.g. [\"10-K\"] for annual or [\"10-Q\"] for quarterly figures"
    • changedInput schema / properties / limit / description
      Previous value: -"Optional page size: items to return, integer 1-500 (default 50)"New value: +"Optional page size: items to return, integer 1-500 (default 50). Example: 10"
    • changedInput schema / properties / offset / description
      Previous value: -"Number of items to skip for paging (default 0); use nextOffset from the previous response"New value: +"Optional zero-based number of items to skip, integer >= 0 (default 0); pass nextOffset from the previous response, e.g. 20"
    • changedInput schema / properties / search / description
      Previous value: -"List mode only: case-insensitive substring filter on concept name or label, e.g. \"revenue\""New value: +"Optional, list mode only. Case-insensitive substring matched against concept name or label. Example: \"revenue\""
    • changedInput schema / properties / since / description
      Previous value: -"Values mode: keep values whose period end >= YYYY-MM-DD"New value: +"Optional, values mode only. Keep values whose period end date >= this date, format YYYY-MM-DD, e.g. \"2021-01-01\""
    • changedInput schema / properties / taxonomy / description
      Previous value: -"Restrict to a taxonomy: \"us-gaap\", \"ifrs-full\", \"dei\", \"srt\". Omit for all."New value: +"Optional, default omitted = all taxonomies. Exact taxonomy key: \"us-gaap\", \"ifrs-full\", \"dei\" or \"srt\". Example: \"us-gaap\""
  2. Addedv1.2.1

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover readOnly/idempotent/openWorld, but the description adds behavior they cannot express: a <=5 req/s throttle, free/direct-sec.gov cost with no APIFY_TOKEN, retryable vs terminal error codes (COMPANY_NOT_FOUND, NOT_FOUND, SEC_FETCH_FAILED), restatement semantics behind dedupe, sort order, and pagination. This is unusually rich disclosure for a read tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the two modes and then organized under Behavior/RETURNS/WHEN NOT TO USE/COST/PARAMETERS/EXAMPLE headings, so it is scannable despite its length. The PARAMETERS section partially restates schema text, which is mild redundancy, but the mode-interaction details justify the space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with two operating modes, the description covers mode selection, ignored-parameter interactions, filter semantics, dedupe, sorting/paging, error codes, cost, and a worked example. Even though an output schema exists, the inline RETURNS note about 'start is null for instant concepts' adds needed row-shape context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description meaningfully exceeds the schema: it explains that concepts switches mode (and which params are ignored in each), that filters combine with AND, that concept names are case-sensitive and never-reported names surface in meta.missing_concepts rather than failing, and that revenue is often tagged RevenueFromContractWithCustomerExcludingAssessedTax.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb+resource (get reported XBRL financial data for one company) and names the data source (SEC companyfacts API) with concrete example concepts. It explicitly distinguishes its two modes and contrasts itself with edgar_get_concept_across_companies, so an agent can tell it apart from every sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit WHEN NOT TO USE section routing to edgar_list_filings + edgar_get_filing_document for documents, and to edgar_get_concept_across_companies / edgar_batch_export for multi-company work. It also prescribes the workflow 'run list mode with search "revenue" first' before requesting values, which is actionable selection guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.