Skip to main content
Glama

EdgarStack

Get standardized financial statement data, trends, or revisions

get_financials
Read-onlyIdempotent

Pull standardized financial line items for a US-listed company from SEC XBRL filings. Available metrics: revenue, grossProfit, operatingIncome, netIncome, epsBasic, epsDiluted, totalAssets, currentAssets, totalLiabilities, currentLiabilities, longTermDebt, totalEquity, cashAndEquivalents, operatingCashFlow, capex, rdExpense, sharesOutstanding, dividendsPerShare, dividendsPaid, stockBasedCompensation, deferredRevenue, goodwill, intangibleAssets, depreciationAmortization, costOfGoodsSold, sellingGeneralAndAdministrative, interestExpense, otherNonoperatingIncomeExpense, pretaxIncome, incomeTaxExpense, liabilitiesAndEquity, assetImpairment, shortTermInvestments, weightedAverageDilutedShares, shareRepurchases, accountsReceivable, inventory, accountsPayable, propertyPlantEquipment, investingCashFlow, financingCashFlow, grossInterestIncome, netInterestIncome, noninterestIncome, currentDebt, debtIssued, debtRepaid, weightedAverageBasicShares, otherCurrentAssets, otherCurrentLiabilities. For "what were X's results / latest quarter / earnings" questions, call get_earnings_release first: it also covers results day, before the 10-Q reaches XBRL. Three views:

  • view="values" (default): values per period with the XBRL tag used and source filing accession numbers. period="ttm" returns latest FY + current YTD - prior-year comparable YTD for flows (or FY when the latest fact is year-end), and latest instant values for balance-sheet metrics. fiscalYear is derived from the fact's periodEnd; sourceFilingFiscalYear preserves SEC filing metadata. limit 1–40, default 8.

  • view="trends": changes, guarded growth rates and filing provenance for up to 8 metrics (default revenue, operatingIncome, netIncome, operatingCashFlow, capex). Quarterly mode compares adjacent reported quarters and matches year-over-year quarters by actual period end; missing periods are not imputed. Annual mode also returns endpoint CAGR. Annual or quarterly only; limit 2–10, default 8. Historical analysis, not a forecast.

  • view="revisions": values the company later reported differently for the same XBRL tag and exact period, with both filing dates and accession numbers (up to 6 metrics; defaults to revenue, net income, assets, operating cash flow). Annual or quarterly only; limit 1–50 changed facts per metric, default 20. A difference can reflect an amendment, reclassification, or updated comparative and does not alone establish a formal restatement. Not financial advice.

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
viewNovalues = reported numbers; trends = growth and CAGR; revisions = later-changed reported factsvalues
limitNovalues: periods per metric (1–40, default 8); trends: observations per metric (2–10, default 8); revisions: changed facts per metric (1–50, default 20)
periodNoTTM is available for view=values only.annual
tickerYes
metricsNoSubset of available metrics; omit for all (values) or the view's defaults (trends, revisions)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuine behavioral context beyond that: how TTM is derived (latest FY + current YTD minus prior-year comparable YTD), that missing periods are not imputed, and that a revision may reflect an amendment or reclassification but 'does not alone establish a formal restatement'. That interpretive caveat is the kind of meaning annotations cannot carry.

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?

It is front-loaded with the core operation, then cleanly segmented into three view bullets, with the sibling routing rule placed early where it will be read. The 47-item metric list is bulky but functional since metrics is a free-form string array with no enum in the schema; without it an agent cannot know valid values. A tighter grouping of related metrics would improve scanability.

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?

There is no output schema, so the description must describe returns, and it does: values returns per-period values with XBRL tag and accession numbers, trends returns changes/growth/CAGR with provenance, revisions returns both filing dates and accession numbers for changed facts. Count ranges and defaults are given for every view. What is missing is a note on error behavior for non-US-listed or non-XBRL filers.

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 80%, so the baseline is 3; the description exceeds it by explaining that period='ttm' returns FY + current YTD minus prior-year comparable YTD for flows but latest instants for balance-sheet metrics, and that fiscalYear is derived from periodEnd while sourceFilingFiscalYear preserves filing metadata. It also documents per-view default metrics sets, which the schema only gestures at. Slight redundancy with the schema's own limit and enum descriptions keeps it off a 5.

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?

The description opens with a specific verb and resource ('Pull standardized financial line items for a US-listed company from SEC XBRL filings') and then enumerates the exact metric universe, so an agent knows both the operation and the domain without opening the schema. The three views are each named and characterized, which separates this tool from modeling or ratio 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?

It gives an explicit routing rule with a named alternative: for 'what were X's results / latest quarter / earnings' questions, call get_earnings_release first, and explains why (covers results day before the 10-Q reaches XBRL). It further states per-view applicability constraints (TTM only for view=values; annual/quarterly only for trends and revisions) and that trends is historical analysis, not a forecast.

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