Skip to main content
Glama

Live financial statement

live-financial-statement
Read-onlyIdempotent

Generate a live financial statement directly from the current tenant's OLTP ledger data using the active CoA→GAAP mapping.

WHEN TO USE:

  • When the user asks for their books — "show me my income statement", "my balance sheet for Q1"

  • Live, up-to-the-minute data (no materialization required)

  • Only available on RoboLedger tenant entity graphs (not SEC shared repo)

PARAMETERS:

  • entity_id (optional) — the entity whose books to render; omit for the group parent

  • scope (optional, default entity) — entity is one entity's own books. On the group parent, combined sums every member consolidated in full under the parent's Reporting Style, per rs-gaap concept, for the months each was a member — the pre-adjustment total, nothing eliminated; consolidated adds the consolidation entity, whose eliminations and noncontrolling interest are the adjustments column, so a group that posts its consolidating entries there reads its consolidated statement. An equity-method or cost member (its consolidation_method) is never summed. A question about "the group" reads consolidated; combined is the worksheet's first total. combined_entity_ids on the response names who was summed, and an entity with no mapping yet is left out. consolidated: true is the older spelling of scope: consolidated

  • dimension (optional, income statement only) — a management slice: {"type": "department"} returns the current window with one column per department, then Unallocated (lines no department tags), then Total, and dimension.ties_out says whether every row's members plus Unallocated equal its Total; {"type": "department", "member_id": "<id>"} reads one member's lines, current and prior (member_id: "unallocated" the untagged ones). list-dimensions names the axes and members. A consolidation entity's lines are untagged, so on scope: consolidated the eliminations read as Unallocated

  • include_sources (optional, default false) — "why is this number what it is?": each row gains origin (accounts, subtotal or computed) and, per column, the accounts its figure was summed from with each one's value and the entity_id whose books hold it. Open one with get-account-register(account_id, start_date, end_date, entity_id). Ask it for the statement you are explaining, not for every read: it multiplies the response

  • statement_type (required) — one of the four below

  • income_statement — Revenue, expenses, net income

  • balance_sheet — Assets, liabilities, equity (instant periods)

  • cash_flow_statement — Operating (indirect: net income + non-cash add-backs + working-capital deltas), investing, financing. Cash flows proper — every investing and financing line, and an operating receipt that is neither net income nor a working-capital change (a distribution from an equity-method investee) — resolve from each line's explicit flow tag when present, else from the mapped rs-gaap element's default-flow derivation arc, so untagged QB data renders too, provided the relevant accounts are mapped at the grain the arcs key on (e.g. PP&E Gross for capex). Each column measures its working-capital deltas from its own opening balances.

  • equity_statement — The roll-forward of the Reporting Style's capital (stockholders' equity, partners' capital or members' equity): beginning balance, net income, contributions, distributions or dividends, and other changes, to the ending balance. Every equity line counts, cash or not — an owner paying a company bill directly is a contribution. The two balance rows share the capital concept's qname and are told apart by period_role (start, end). On a group with outside owners the noncontrolling interest rolls forward after it the same way (rs-gaap:MinorityInterest): its share of income, contributions, and distributions to the outside owners.

  • Explicit period_start / period_end (YYYY-MM-DD) win over everything else

  • period_type="annual" + fiscal_year=2025 → window anchored on the graph's FiscalCalendar

  • period_type="quarterly" → current calendar quarter

  • period_type="instant" / unset → current calendar month

RETURNS: Facts with element qnames, names, classifications, and values aligned with periods — current + prior (equal duration) for every statement type. Abstract scaffolding rows and all-zero rows are filtered out; subtotals are kept and flagged is_subtotal. Capped at limit rows (default 1000 — the whole statement).

validation is the guard-rail outcome for the rendered columns (status: passed | failed | inconclusive; failures; warnings). Read it before quoting a number: a failed status means the statement does not foot or balance, and a warning about 'Other operating capital, net' means the cash flow was made to foot by a reconciling plug — say so rather than presenting the figure as clean. On the equity statement a failure means beginning balance + changes does not reach the ending balance.

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": "live-financial-statement"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax fact rows returned (1-1000). Leave at the default for a whole statement; a lower cap cuts rows while subtotals still reflect the full set.
scopeNoentity: one entity's books. combined: on the group parent, every member consolidated in full, summed per rs-gaap concept for the months each was a member, nothing eliminated. consolidated: that sum plus the consolidation entity's eliminations and noncontrolling interest — what 'the group' reads.
dimensionNoIncome statement only: slice by a management dimension. type alone gives a column per member plus Unallocated and Total; with member_id, one member's lines (or 'unallocated').
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.
period_endNoExplicit window end (YYYY-MM-DD). Overrides period_type/fiscal_year.
fiscal_yearNoFiscal year for annual window (anchored on FiscalCalendar)
period_typeNoannual | quarterly | instant (ignored when explicit dates supplied)
consolidatedNoThe older spelling of scope: consolidated; scope wins when both are given.
period_startNoExplicit window start (YYYY-MM-DD). Overrides period_type/fiscal_year.
statement_typeYesType of financial statement to generate
include_sourcesNoAdd each row's origin and, per column, the accounts its figure was summed from, each with its entity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses that abstract and all-zero rows are filtered while subtotals are retained, that responses are capped at `limit`, that current+prior periods are returned, and that `include_sources` 'multiplies the response'. The RETURNS section explains the `validation` guard-rail, what a `failed` status means, and that an 'Other operating capital, net' warning signals a reconciling plug — behavioral context an agent cannot get from annotations.

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?

Headers (WHEN TO USE / PARAMETERS / RETURNS) and bold lead-ins make it navigable and the purpose is front-loaded. However, the scope and dimension bullets are dense run-on paragraphs mixing routing advice, semantics, and edge cases, and several statements restate the schema verbatim — length that does not all earn its place.

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?

There is no output schema, so the description carries the full return-value burden and does so: fact shape, qname/classification fields, `periods` alignment, subtotal flagging, row cap, and the `validation` object with status/failures/warnings. For an 11-parameter, nested-object tool it covers the complexity an agent needs before calling.

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; the description still adds genuine meaning beyond the schema for the statement_type enum (each type's contents) and the period precedence rules ('explicit period_start/period_end win over everything else', annual anchored on FiscalCalendar). Much of the scope/dimension/include_sources prose closely mirrors the schema descriptions, so the value-add 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 specific verb+resource ('Generate a live financial statement') and pins the data source ('current tenant's OLTP ledger data using the active CoA→GAAP mapping'). The scope constraint ('only available on RoboLedger tenant entity graphs, not SEC shared repo') and the 'live, no materialization' framing distinguish it from a stored-analysis sibling without needing the schema.

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?

The WHEN TO USE block gives concrete trigger utterances ('show me my income statement', 'my balance sheet for Q1') and an explicit exclusion (SEC shared repo). It also routes sub-tasks to list-dimensions and get-account-register, but never explicitly names the nearest sibling (financial-statement-analysis) or states when that alternative should win, so routing for the core job is implied rather than spelled out.

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.