Skip to main content
Glama

Financial statements (XBRL)

get_financials
Read-onlyIdempotent

Financial statements of one company from the XBRL data in its 10-K, 10-Q, 20-F and 40-F filings (SEC companyfacts), newest period first: income statement (revenue, cost_of_revenue, gross_profit, operating_expenses, rd_expense, sga_expense, operating_income, interest_expense, tax_expense, net_income, eps_basic, eps_diluted, shares_basic, shares_diluted), balance sheet (cash_and_equivalents ... total_assets, total_liabilities, total_equity including minority interest), cash flow (operating_cash_flow, capex, free_cash_flow = operating cash flow minus capex, dividends_paid, share_buybacks, ..., depreciation_amortization, stock_based_compensation) and the cover-page shares outstanding (shares, with change_1y_pct). period=annual gives fiscal years (FY), quarterly gives single fiscal quarters (Q1-Q4). IMPORTANT: amounts are in the company's reporting currency (currency, for example TWD for TSMC), not US dollars; for other currencies usd_rate gives US dollars per unit: multiply income statement and cash flow amounts by usd_rate.average and balance sheet amounts by usd_rate.period_end. EPS is in that currency per share. Each period has its filing (form, filed_date, accession, sec_url), reported_date (the earnings 8-K, Item 2.02), margins (gross, operating and net margin, stock-based compensation as a percent of revenue) and yoy_pct (growth against the same fiscal period a year earlier). Numbers are as filed in each period's original report or its amendment. Known gaps: foreign companies (20-F, 40-F) have annual statements only; EPS and share counts are not adjusted for stock splits (stock_splits lists the splits in the range); for ADRs EPS is per ordinary share, not per ADS; Q4 and single-quarter cash flows are mostly derived by subtraction (listed in derived); banks' revenue may be interest income only; companies with several share classes may have no EPS, and their cover-page share count adds up the classes but only for the last few filings, so there can be a gap before them. note explains what applies to this company, including why there are no statements (ETFs and funds have none). No stock prices are returned and no valuation ratios are computed; get_stock has the company's market cap in USD (convert foreign-currency statements with usd_rate before comparing).

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": {
      "ticker": "<ticker>"
    },
    "name": "get_financials"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of periods, newest first: default 5 for annual, 8 for quarterly, at most 40.
periodNoannual = fiscal years (default); quarterly = single fiscal quarters.annual
tickerYesStock ticker, e.g. AAPL or BRK.B (share classes use a dot; BRK-B also works).
statementsNoWhich parts to return: income, balance, cash_flow, shares (cover-page shares outstanding). Default all, e.g. ["income"].

Output Schema

NameRequiredDescriptionDefault
noteYes
periodYes
companyYes
periodsYes
coverageYes
currencyYesReporting currency of the latest period (ISO 4217). Amounts are in this currency, not USD.
statementsYes
stock_splitsYes
shares_outstandingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial behavior beyond them: reporting-currency amounts with usd_rate.average vs usd_rate.period_end conversion rules, filing/amendment provenance, derived single-quarter cash flows listed in `derived`, split-unadjusted EPS, ADR per-ordinary-share EPS, and a `note` field explaining absent statements for ETFs/funds.

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

Conciseness3/5

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

Purpose and currency warning are front-loaded, but the body is a single dense paragraph that enumerates dozens of output field names even though an output schema exists, making it longer than necessary. The caveat catalog is valuable yet could be trimmed or restructured into scannable segments.

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?

Given the complexity of multi-filing XBRL extraction, the description covers currency conversion, period alignment (yoy against same fiscal period), amendment handling, foreign-filer limitations, bank/ADR/multi-class edge cases, and why statements may be missing. Nothing material an agent needs to call it correctly appears absent.

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

Parameters3/5

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

Schema coverage is 100%, so all four parameters are already documented, including limit defaults and the ticker dot convention. The description reinforces period semantics (annual fiscal years vs single fiscal quarters) and clarifies that `shares` is cover-page shares outstanding with change_1y_pct, but adds little else beyond the schema.

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: financial statements of one company sourced from XBRL in 10-K/10-Q/20-F/40-F filings. It enumerates the statement types returned and explicitly excludes market data ('No stock prices are returned and no valuation ratios are computed'), which separates it from get_stock and the price-oriented siblings.

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

Usage Guidelines4/5

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

Gives a clear usage context (fundamental statement extraction for a single ticker) and an explicit redirect: use get_stock for market cap and convert with usd_rate before comparing. It lacks an explicit statement of when to prefer tw_get_financials or get_data_coverage, but the routing it does provide is concrete.

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