Skip to main content
Glama

MetricDuck — Financial Analysis

Financial Statements

get_financials
Read-only

Use this when the user asks for a company's income statement, balance sheet or cash flow over several quarters or years: all three statements in one call, up to 10 years (quarterly: the latest 12 quarters), each period cited to its filing; get_metric_history follows one metric, and get_company_overview is the latest snapshot.

Returns quantitative historical data with key metrics and trends. Default: all 3 statements, quarterly, 2 years. For qualitative analysis (risks, accounting quality, management tone), use get_filing_index (signal map) then get_filing_section to read the text.

Use Cases:

  • "Show me AAPL's financials" -> all statements

  • "MSFT revenue trend 5 years" -> period="annual", years=5

  • "Is Tesla's debt increasing?" -> statements=["balance"]

  • "As of a past date / point-in-time" -> get_financials("MSFT", vantage_date="2024-04-30")

Periods cite the SEC filing that reported them (accession + filed date in a footnote; resolvable EDGAR index handles in the <raw_data> block); under vantage_date, a later recast can sit under the vantage-era citation.

Exactness: the markdown table ABBREVIATES ($68.14M) — it quantises to $10K above $1M and $10M above $1B, so it is not a tie-out surface. The <raw_data> block carries the exact stored value (68135000). Quote figures from <raw_data>, not the table, whenever the precise number matters.

Responses capped at ~20K chars. If too large, the OLDEST periods are trimmed first (the same count for every statement, with a note); a whole statement is dropped only if one period of each still does not fit. Nothing is sliced, and <raw_data> carries exactly the periods shown — request fewer statements for more periods each.

Company-reported Adjusted EBITDA (issuer-specific add-backs) is NOT a computed metric here — read the issuer's own reconciliation via get_filing_section (earnings release / MD&A).

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
yearsNoYears of history (default 2, max 10). Quarterly returns at most the latest 12 quarters.
periodNoTime period granularityquarterly
tickerYesCompany ticker symbol (e.g., 'AAPL'). Must be exact.
statementsNoWhich statements to include (default: all three)
vantage_dateNoAs-of vantage (YYYY-MM-DD): restrict to filings PUBLISHED on or before this date and cite the filing current then. Omit (or pass today) for the latest. This bounds the visible FILINGS and the cited SOURCE; it does NOT reconstruct the value as of that date. Values are the LATEST FILED: a later restatement or recast (including a later 10-K's comparative columns) IS SERVED under the vantage-era citation. LOOK-AHEAD flags a period whose own filing was later amended or whose headline line was first filed later, naming that filing; other lines, ratios and TTM are unflagged, though a fact-linked value was checked. For the value as known at your vantage, call get_xbrl_facts with the accession_number of the latest filing on or before it that reports the period (list_filings takes vantage_date); period_history=true gives each period's value as originally filed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / vantage_date / description
      Previous value: -"As-of vantage (YYYY-MM-DD): restrict to filings PUBLISHED on or before this date and cite the filing current then. Omit (or pass today) for the latest. This bounds the visible FILINGS and the cited SOURCE; it does NOT reconstruct the value as of that date. Values are the LATEST FILED: a later restatement or recast (including a later 10-K's comparative columns) IS SERVED under the vantage-era citation. LOOK-AHEAD flags a period whose own filing was later amended or whose headline line was first filed later, naming that filing; other lines, ratios and TTM are unchecked. For the value as known at your vantage, call get_xbrl_facts with the accession_number of the latest filing on or before it that reports the period (list_filings takes vantage_date); period_history=true gives each period's value as originally filed."New value: +"As-of vantage (YYYY-MM-DD): restrict to filings PUBLISHED on or before this date and cite the filing current then. Omit (or pass today) for the latest. This bounds the visible FILINGS and the cited SOURCE; it does NOT reconstruct the value as of that date. Values are the LATEST FILED: a later restatement or recast (including a later 10-K's comparative columns) IS SERVED under the vantage-era citation. LOOK-AHEAD flags a period whose own filing was later amended or whose headline line was first filed later, naming that filing; other lines, ratios and TTM are unflagged, though a fact-linked value was checked. For the value as known at your vantage, call get_xbrl_facts with the accession_number of the latest filing on or before it that reports the period (list_filings takes vantage_date); period_history=true gives each period's value as originally filed."
  2. Changed1 schema field changed
    • changedInput schema / properties / vantage_date / description
      Previous value: -"As-of vantage (YYYY-MM-DD): restrict to filings PUBLISHED on or before this date, and cite the filing that was current then. Omit for the latest. IMPORTANT — this bounds which FILINGS are visible and which SOURCE is cited; it does NOT reconstruct the value as it stood on that date. Values are the LATEST FILED: if a later filing restated or recast a period (including a later 10-K's comparative columns), THAT LATER VALUE IS SERVED under the vantage-era citation. A LOOK-AHEAD warning appears only when the period's own filing was later amended; other recasts are NOT flagged. For the value as known at your vantage, call get_xbrl_facts with the accession_number of the latest filing on or before it that reports the period (list_filings takes vantage_date); period_history=true gives each period's value as originally filed."New value: +"As-of vantage (YYYY-MM-DD): restrict to filings PUBLISHED on or before this date and cite the filing current then. Omit (or pass today) for the latest. This bounds the visible FILINGS and the cited SOURCE; it does NOT reconstruct the value as of that date. Values are the LATEST FILED: a later restatement or recast (including a later 10-K's comparative columns) IS SERVED under the vantage-era citation. LOOK-AHEAD flags a period whose own filing was later amended or whose headline line was first filed later, naming that filing; other lines, ratios and TTM are unchecked. For the value as known at your vantage, call get_xbrl_facts with the accession_number of the latest filing on or before it that reports the period (list_filings takes vantage_date); period_history=true gives each period's value as originally filed."
  3. Changed1 schema field changed
    • changedInput schema / properties / years / description
      Previous value: -"Years of history (default 2, max 10)"New value: +"Years of history (default 2, max 10). Quarterly returns at most the latest 12 quarters."
  4. Changed1 schema field changed
    • changedInput schema / properties / vantage_date / description
      Previous value: -"As-of vantage (YYYY-MM-DD): restrict to filings PUBLISHED on or before this date, and cite the filing that was current then. Omit for the latest. IMPORTANT — this bounds which FILINGS are visible and which SOURCE is cited; it does NOT reconstruct the value as it stood on that date. If a later filing restated a period, THE RESTATED VALUE IS WHAT IS SERVED under a pre-vantage citation — and the response carries an explicit LOOK-AHEAD warning naming the affected periods, so the exposure is disclosed rather than silent. For a true as-originally-filed series use get_xbrl_facts with period_history=true."New value: +"As-of vantage (YYYY-MM-DD): restrict to filings PUBLISHED on or before this date, and cite the filing that was current then. Omit for the latest. IMPORTANT — this bounds which FILINGS are visible and which SOURCE is cited; it does NOT reconstruct the value as it stood on that date. Values are the LATEST FILED: if a later filing restated or recast a period (including a later 10-K's comparative columns), THAT LATER VALUE IS SERVED under the vantage-era citation. A LOOK-AHEAD warning appears only when the period's own filing was later amended; other recasts are NOT flagged. For the value as known at your vantage, call get_xbrl_facts with the accession_number of the latest filing on or before it that reports the period (list_filings takes vantage_date); period_history=true gives each period's value as originally filed."
  5. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare read-only, non-destructive, open-world; the description adds substantial behavior the annotations cannot: per-period filing citation with accession and filed date, how vantage_date bounds filings but does not reconstruct point-in-time values, the LOOK-AHEAD flag, the ~20K char cap with oldest-periods-trimmed-first policy, and the markdown table's $10K/$10M quantisation versus exact values in <raw_data>. The only deduction is that the vantage_date caveat largely restates what the schema already documents, so not all of it is incremental.

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 one-line selection rule, then use cases, then exactness and truncation caveats; each block is scannable and mostly earns its place. The vantage_date paragraph repeats the schema's own long description, which is the main slack in an otherwise disciplined layout.

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?

With no output schema, the description carries the return-value burden and does: table shape, the <raw_data> block with exact stored values, footnote citations and resolvable handles, and what happens when the response is too large. Nothing an agent needs to call it correctly or interpret results 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 baseline is 3, but the description adds meaning beyond the schema: it clarifies that quarterly caps at the latest 12 quarters regardless of years, and that requesting fewer statements buys more periods per statement. The vantage_date/period interactions are already spelled out in the schema, so the addition is real but partly duplicative.

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 concrete verb and resource plus explicit scope: all three statements in one call, up to 10 years, 12 quarters, each period cited to its filing. It then names the exact siblings it is not (get_metric_history follows one metric, get_company_overview is the latest snapshot), so the agent can route without opening schemas.

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 when-to-use with concrete query examples mapped to parameter settings (revenue trend 5 years -> period="annual", years=5; debt question -> statements=["balance"]), plus explicit when-not-to-use routing to get_filing_index/get_filing_section for qualitative work and a disclaimer that Adjusted EBITDA is not computed here.

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