get_calculation_tree
Retrieve a filing's calculation sections, then show how line items add up to totals, comparing declared and corrected weights to flag sign errors.
Instructions
The issuer's own arithmetic in one filing: which concepts add up to which
total, with the sign the filer declared (weight) next to the sign the filed
values support (corrected_weight); is_corrected marks an arc where the
two disagree, corrected_count counts them.
Call it first without link_role to list the filing's calculation sections
(largest first), then again with the link_role of the statement or note
you want. Take filing_id from the source of get_fact or from
get_entity_profile.
Use for 'how does Apple's FY2025 balance sheet add up', 'which lines make up operating expenses in this filing', 'did the issuer get a sign wrong'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filing_id | Yes | ||
| link_role | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |