Skip to main content
Glama

Financial statement analysis

financial-statement-analysis
Read-onlyIdempotent

Return a structured financial statement from the graph-backed XBRL hypercube.

WHEN TO USE:

  • SEC shared repository: "show me NVDA's latest 10-K income statement"

  • RoboLedger tenant graph post-materialization: historical analytical queries against the materialized ledger

  • Use when you want cross-period or cross-entity analytical views rather than the current live books (use live-financial-statement for the latter)

NOTES:

  • Shared-repo (SEC): ticker REQUIRED. If no report_id, auto-resolves the latest matching filing by form type (10-K/10-Q/20-F/40-F).

  • Tenant graph: report_id REQUIRED.

PARAMETERS:

  • statement_type (required) — one of income_statement, balance_sheet, cash_flow_statement, equity_statement

  • period_type — annual (10-K/20-F/40-F, duration facts), quarterly (10-Q plus annuals for international filers, duration facts), or instant (point-in-time facts; the balance-sheet default). Unset on an annual form it defaults to annual, so a 10-K's quarterly note figures stay out

  • periods — how many period end dates to keep, newest first (default 2 for the balance sheet, 3 for the flow statements — the columns a filing presents). Raise it for a longer series

  • ticker / report_id — which one is required depends on the graph; see NOTES

RETURNS:

  • Deduplicated facts (canonical_concept, qname, value, unit, start_date / end_date, period_type, duration_type; null fields omitted; name only when it is a label rather than the qname's local part) ordered by end_date DESC

  • A line a filer reports in two units (its own currency and a US-dollar translation) comes back once per unit, and units_note says so — read one unit down the statement, never a mix

  • periods — the period keys the facts span, newest first, and periods_omitted when older end dates were cut by the cap

  • resolved_report info when auto-resolution was used, with links on a shared repository: viewer opens the filing in the xbrlkit viewer — give the user that URL to show the filing — beside holon, tavi, edgar

  • Dimensional/segment breakdowns are filtered out (consolidated totals only)

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": {
      "statement_type": "<statement_type>"
    },
    "name": "financial-statement-analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax fact rows returned (1-1000), applied after the period cap. Leave at the default for a whole statement; a lower cap cuts rows while subtotals still reflect the full set.
tickerNoCompany ticker symbol. REQUIRED on shared-repo graphs (e.g. 'NVDA').
periodsNoPeriod end dates to keep, newest first (default 2 for balance_sheet, 3 otherwise; max 100). Raise it for a longer series.
report_idNoSpecific report identifier. If omitted on SEC, auto-resolved from ticker + filters.
fiscal_yearNoFilter auto-resolution by fiscal year focus (e.g. 2025).
period_typeNoFilter by period type
statement_typeYesType of financial statement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare a safe read-only, idempotent, closed-world profile, yet the description adds substantial extra context: consolidated-only filtering of dimensional breakdowns, one-row-per-unit duplication with a units_note contract, and auto-resolution producing resolved_report info with viewer/holon/tavi/edgar links. It stops short of describing failure modes (e.g. what happens when ticker resolution finds no filing), which keeps it off a 5.

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?

Header-delimited WHEN TO USE / NOTES / PARAMETERS / RETURNS structure is both front-loaded and skimmable, and the key routing rule appears before the detail. The PARAMETERS block retreads some schema ground, so there is modest duplication rather than pure signal.

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 RETURNS section carries the full burden and does so: field list, ordering (end_date DESC), null omission, unit duplication, period keys and periods_omitted, plus resolved_report links. For a 7-parameter analytical tool this is complete enough to invoke correctly.

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 real meaning: ticker is required on shared-repo graphs and report_id on tenant graphs, and an unset period_type on an annual form defaults to annual so quarterly note figures stay out. It also explains the periods defaults (2 for balance sheet, 3 for flow statements) as mirroring a filing's columns, though limit and fiscal_year get no narrative treatment.

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 ("Return a structured financial statement from the graph-backed XBRL hypercube") and immediately contrasts itself with the live-books sibling. An agent can tell it apart from live-financial-statement 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?

The WHEN TO USE block gives two concrete invocation scenarios (SEC shared repo, RoboLedger tenant graph post-materialization) and explicitly routes the alternative case to live-financial-statement. The exclusion is stated, not inferred.

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.