Skip to main content
Glama

Get SEC financials

sec_get_financials
Read-onlyIdempotent

SEC XBRL financial data from 10-K, 10-Q, and 20-F filings by company CIK: income statement, balance sheet, cash flow as presented, any us-gaap/ifrs/dei concept over time, one concept across all companies (frames), reported and derived quarters, standard fields (revenue, net income, EPS, assets, ...), business segments, a filing's presentation roles. Use for numbers; for filing text use sec_read_filing, for HTML tables sec_get_tables. Input: view plus its arguments (cik, accession, concept such as us-gaap:Revenues, period YYYY-MM-DD or CY2024Q4). Example: {"view": "standard", "cik": "320193", "periods": "annual", "limit": 4}. Returns: values with period, unit, and the accession and acceptance time that reported them; paged with next_cursor. Limits: XBRL exists from 2009 (large filers) and 2011 (all); standard fields are not_applicable for banks, insurers, REITs, BDCs and IFRS filers. Values from different as_of or basis must not be combined.

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": {
      "view": "<view>"
    },
    "name": "sec_get_financials"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoview=standard, segments: last period end, YYYY-MM-DD.
cikNoThe company: a ticker or CIK, e.g. "AAPL" or "320193". view=series and facts also take a list of up to 100, e.g. ["AAPL", "MSFT"]. Each row names its entity_cik.
ttmNoview=standard, standard_frame: add trailing-twelve-month values (default false).
axisNoview=segments: segment, product, geography, customer (default all).
dimsNonone (default: facts without dimensions), any, or a dims_hash for one exact dimension set.
fromNoview=standard, segments: first period end, YYYY-MM-DD, e.g. "2022-01-01".
kindNoview=statement: income, balance, cash_flow, equity, comprehensive, or cover.
sortNoview=frame: order of the companies (default cik).
unitNoOnly this unit as stored, e.g. iso4217:USD, shares, iso4217:USD/shares. A frame without unit can mix units (see unit_norm on each row); sort compares values across them.
viewYesseries: one concept over time for a company; facts: one concept of a company (cik + concept) or every fact of a filing (accession); frame: one concept and period across companies; statement: statements as presented; periods: reported and derived quarters (Q4 = FY - 9M, H2, TTM) with formula and inputs; standard: a company's standard fields (revenue, net_income, total_assets, ...) by period, each with its source facts; standard_frame: one standard field across companies for a calendar period; segments: revenue, operating income, assets, and other values by business segment, product, geography, or customer; roles: every presentation role (statement, note, policy, table, detail) of a filing's XBRL with its R page.
as_ofNoSEC acceptance time, inclusive (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ); absent = now.
basisNoview=series: latest (default), first_reported, or as_of (the latest known at as_of; needs as_of). view=standard, standard_frame, segments: latest (default) or first_reported.
fieldNoview=standard_frame: the standard field (required), e.g. "revenue".
limitNoPage size: series 1..1000 (default 200); facts of a filing 1..5000 (default 500); facts of a company 1..2000 (default 500); frame 1..1000 (default 500); standard 1..1000 period ends (default 8); standard_frame 1..5000 companies (default 100); segments 1..200 period ends (default 4); roles 1..500 (default 200).
cursorNoTo get the next page: next_cursor from the previous answer, with the same other arguments.
fieldsNoview=standard: standard fields to return (default all): revenue, cost_of_revenue, gross_profit, operating_income, pretax_income, net_income, eps_basic, eps_diluted, total_assets, total_liabilities, total_equity, cash_and_equivalents, operating_cash_flow, capital_expenditure, shares_outstanding.
periodNoYYYY-MM-DD (an instant, or periods ending that day) or YYYY-MM-DD/YYYY-MM-DD (that exact duration). view=frame also takes a calendar frame: CY2024Q4 (a quarter), CY2024 (a year) or CY2024Q4I (an instant in a quarter). Required for view=frame. view=standard_frame: a calendar frame (CY2024Q4, CY2024, CY2024Q4I), required. view=standard and segments: one period end.
conceptNoXBRL concept as prefix:LocalName, e.g. us-gaap:Revenues (a name without prefix is read as us-gaap). Several only with view=facts and accession.
periodsNoview=standard: annual, quarterly, ytd, instant, or all (default annual,quarterly); view=segments: annual (default) or quarterly.
categoryNoview=roles: Cover, Statements, Notes, Policies, Tables, Details, Other, or Uncategorized (default all).
accessionNoview=facts, statement, or roles: the filing's accession, e.g. "0000320193-26-000026".
segment_kindNoview=segments: revenue, operating_income, assets, long_lived_assets, depreciation_amortization, capital_expenditure, expense (default all).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely non-obvious constraints: XBRL coverage starts 2009/2011, standard fields are not_applicable for banks/insurers/REITs/BDCs/IFRS filers, and values from different as_of or basis must not be combined. Pagination via next_cursor is also disclosed, though return-field detail beyond period/unit/accession is thin.

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 purpose, then usage routing, then input shape, example, returns, and limits in a logical order. It is dense and long, but nearly every clause carries information; the enumerated view list is the only mildly repetitive stretch against the schema.

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

Completeness4/5

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

For a 22-parameter, multi-view tool with no output schema, the description covers purpose, routing, invocation example, return shape, pagination, and coverage/limitation caveats. Remaining gaps are minor, e.g. which sibling to use for non-XBRL filing metadata, which is arguably outside this tool's scope.

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

Parameters4/5

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

Schema coverage is 100%, so the schema does the heavy lifting and a 3 would be the baseline. The description still adds practical meaning: concept syntax (us-gaap:Revenues), period alternates (YYYY-MM-DD or CY2024Q4), and a full example object showing how view, cik, periods, and limit compose.

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?

Opens with a specific verb-and-resource statement ('SEC XBRL financial data from 10-K, 10-Q, and 20-F filings by company CIK') and then enumerates the concrete views (income statement, balance sheet, cash flow, frames, segments, roles). An agent can immediately tell this is the numeric-fundamentals tool and how it differs from text/table siblings.

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?

Gives an explicit routing rule: 'Use for numbers; for filing text use sec_read_filing, for HTML tables sec_get_tables.' It also states the input contract ('view plus its arguments') and supplies a worked example invocation, leaving little to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources