Skip to main content
Glama

SEC EDGAR: filings, insider trades, 13F

SEC EDGAR Financials API: financial statements, cash flow, 10-K

get_sec_financials
Read-onlyIdempotent

Get clean financial statements of any US-listed company from the SEC's own XBRL data: revenue, profit, EPS, balance sheet, cash flow, free cash flow and margins, per fiscal year or per quarter, by ticker or CIK. Every value cites the XBRL tag and the SEC filing it came from.

Needs tickers or ciks. To find companies by their figures use search_sec_companies_by_financials.

Inputs: tickers or ciks (at least one); period annual gives one row per fiscal year, quarterly one per fiscal quarter; years (default 5, max 20) sets how far back; metrics keeps only the named fields; includeSources false makes rows about 3x smaller.

Read-only, no side effects. Charged per row returned, at the price below; a call that fails or runs out of time (55 s) is free. If one source does not answer, the rest still comes back and warnings names the gap. Limit: 60 calls a minute per key (10 on a new free key); past it the call is refused (rate_limited, free): retry after about 10 seconds.

Price: $0.005 per company-period.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_sec_financials"
  }
}

Input Schema

NameRequiredDescriptionDefault
ciksNoSEC Central Index Keys as digits, leading zeros optional, e.g. ["320193"] for Apple
yearsNoHow many of the latest fiscal years to return per company, e.g. 5 (5 rows annual, up to 20 rows quarterly; 2 with quarterly = the last 8 quarters)
periodNo"annual" = one row per fiscal year (FY)annual
metricsNoOnly these output fields, e.g. ["revenue", "net_income", "free_cash_flow", "operating_margin"]
tickersNoUS tickers as listed by the SEC, e.g. ["AAPL", "MSFT"]; share classes with a dash or dot, e.g. "BRK-B"
includeSourcesNotrue = each row has `sources` (per value: the XBRL tag and the SEC accession number it came from, plus how it was derived) and `filings` (form, filing date and URL of each filing cited)

Output Schema

NameRequiredDescriptionDefault
rowsYes
toolNo
countYes
messageNo
warningsNo
balance_usdNo
charged_usdNo
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / tickers / examples
      Added value: +[
      +  [
      +    "AAPL"
      +  ]
      +]
    • addedInput schema / properties / years / examples
      Added value: +[
      +  3
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "balance_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "charged_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "count": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "duration_seconds": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "rows": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "accession_number": {
      +            "description": "SEC accession number of the filing most values come from.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "capex": {
      +            "description": "Capital expenditure: payments for property, plant and equipment, as a positive number. Null for most banks. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "cash_and_equivalents": {
      +            "description": "Cash and cash equivalents at period end (banks: cash and due from banks). In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "cik": {
      +            "description": "SEC CIK, 10 digits.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "company_name": {
      +            "description": "Company name as in SEC companyfacts.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "cost_of_revenue": {
      +            "description": "Cost of revenue / cost of goods and services sold. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "currency": {
      +            "description": "Reporting currency of all money values (ISO 4217, e.g. USD, EUR, DKK). Values are in full units, not thousands.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "current_assets": {
      +            "description": "Total current assets at period end. Null for banks and insurers (unclassified balance sheet). In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "current_liabilities": {
      +            "description": "Total current liabilities. Null for banks and insurers. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "depreciation_amortisation": {
      +            "description": "Depreciation, depletion and amortization (cash flow statement). In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "dividends_paid": {
      +            "description": "Dividends paid in cash, as a positive number. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "ebitda": {
      +            "description": "Derived: operating_profit + depreciation_amortisation.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "eps_basic": {
      +            "description": "Basic earnings per share, in currency per share. Never derived (null for Q4 unless reported).",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "eps_diluted": {
      +            "description": "Diluted earnings per share, in currency per share. Never derived.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "equity_attributable_to_parent": {
      +            "description": "Stockholders' equity attributable to the parent. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "equity_ratio": {
      +            "description": "Derived: total_equity / total_assets.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "filed": {
      +            "description": "Filing date of that filing (YYYY-MM-DD).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "filings": {
      +            "additionalProperties": true,
      +            "description": "Only with includeSources: per accession number cited in sources, its form, filing date and EDGAR URL.",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "financing_cash_flow": {
      +            "description": "Net cash from financing activities. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "fiscal_period": {
      +            "description": "FY for a fiscal year, Q1-Q4 for a discrete 3-month fiscal quarter.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "fiscal_year": {
      +            "description": "Fiscal year as the company names it (Apple's year ending September 2025 = 2025).",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "form": {
      +            "description": "Form of the main filing for this period: 10-K, 10-Q, 20-F, 40-F, 6-K or an /A amendment.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "free_cash_flow": {
      +            "description": "Derived: operating_cash_flow - capex.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "gross_margin": {
      +            "description": "Derived: gross_profit / revenue (0.25 = 25%).",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "gross_profit": {
      +            "description": "Gross profit; when not tagged, revenue - cost_of_revenue (sources says derived). In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "investing_cash_flow": {
      +            "description": "Net cash from investing activities. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "long_term_debt": {
      +            "description": "Long-term debt, non-current portion where tagged, else total long-term debt; sources shows the tag. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "metrics_found": {
      +            "description": "How many of the reported metrics (not the derived ones) have a value.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "net_income": {
      +            "description": "Net income including noncontrolling interests (ProfitLoss), else net income attributable to the parent; as in the esef-annual-reports Actor. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "net_income_attributable_to_parent": {
      +            "description": "Net income attributable to the parent's shareholders (the US 'net income' headline). In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "net_margin": {
      +            "description": "Derived: net_income / revenue.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "noncurrent_liabilities": {
      +            "description": "Total non-current liabilities, when tagged. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "operating_cash_flow": {
      +            "description": "Net cash from operating activities. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "operating_margin": {
      +            "description": "Derived: operating_profit / revenue.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "operating_profit": {
      +            "description": "Operating income (loss). Null for most banks and insurers. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "period_end": {
      +            "description": "Last day of the period = balance-sheet date (YYYY-MM-DD).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "period_start": {
      +            "description": "First day of the period (YYYY-MM-DD).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "profit_before_tax": {
      +            "description": "Income from continuing operations before income taxes. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "research_and_development": {
      +            "description": "Research and development expense. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "retrieved_at": {
      +            "description": "UTC time the row was produced.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "return_on_equity": {
      +            "description": "Derived: net_income / total_equity, fiscal-year rows only.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "revenue": {
      +            "description": "Total revenue / net sales (for banks: total net revenue). In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "revenue_growth": {
      +            "description": "Derived: revenue / revenue of the same fiscal period one year earlier - 1 (year over year, also for quarters).",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "schema_version": {
      +            "description": "Output schema version.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "selling_general_and_administrative": {
      +            "description": "Selling, general and administrative expense (null when the company reports sales/marketing and G&A separately). In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "shares_outstanding": {
      +            "description": "Common shares outstanding at the balance-sheet date.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "source_url": {
      +            "description": "EDGAR index page of that filing.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "sources": {
      +            "additionalProperties": true,
      +            "description": "Only with includeSources: per metric {tag: XBRL concept used, accession: filing it came from, derived: how a quarter value was computed (e.g. 'fiscal year - 9-month YTD') or the formula for gross_profit/total_liabilities fallbacks}.",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "ticker": {
      +            "description": "Main ticker in the SEC's current ticker list (null if none).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "total_assets": {
      +            "description": "Total assets at period end. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "total_equity": {
      +            "description": "Total equity including noncontrolling interests, else stockholders' equity. In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "total_liabilities": {
      +            "description": "Total liabilities; when not tagged, total_assets - total_equity (sources says derived). In `currency`.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "warnings": {
      +            "description": "Notes on this row: quarter values derived from year-to-date figures, restated values (latest filing used), quarterly data missing.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "weighted_average_shares_basic": {
      +            "description": "Weighted average shares outstanding, basic. Never derived.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "weighted_average_shares_diluted": {
      +            "description": "Weighted average shares outstanding, diluted. Never derived.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    "tool": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "rows",
      +    "count"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only/idempotent/non-destructive, but the description adds behavior the annotations cannot convey: per-row pricing, a 55 s timeout that yields a free call, partial results with a `warnings` field when one source fails, and 60 calls/minute (10 on a free key) with a rate_limited refusal and ~10 s retry. That is exactly the operational context an agent needs to avoid surprise failures and cost.

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 purpose, then requirements, then inputs, then operational limits and price — a sensible escalation. Minor redundancy between 'Needs `tickers` or `ciks`' and 'Inputs: `tickers` or `ciks` (at least one)', which repeats the same constraint twice.

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?

An output schema exists, so return-shape explanation is correctly omitted, and the description instead covers cost, rate limits, timeout behavior, and degraded-response semantics. For a paid, rate-limited, partially-failable data tool, nothing an agent needs before calling is missing.

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 baseline is 3, but the description adds genuine meaning: it surfaces the 'at least one of tickers/ciks' requirement that the schema's empty `required` array leaves implicit, and clarifies the `years` × `period` interaction (5 annual rows vs. up to 20 quarterly). It does not restate the enum metric names, which is correct restraint.

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 specific verb and resource ('Get clean financial statements ... from the SEC's own XBRL data') and enumerates the content covered (revenue, profit, EPS, balance sheet, cash flow, margins). It also explicitly disambiguates from the sibling search_sec_companies_by_financials by naming the inverse use case, so an agent can choose without opening either schema.

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 precondition ('Needs `tickers` or `ciks`') and routes the inverse use case to a named alternative. It also states when to prefer `includeSources: false` (roughly 3x smaller rows), which is real when-to-use guidance rather than restating the schema.

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.