xbrl_calculation_tree
Retrieve calculation relationships from XBRL filings to view how totals are computed with component weights, enabling validation of mathematical roll-ups.
Instructions
Get calculation relationships showing how totals are computed.
The calculation linkbase defines mathematical relationships between concepts — e.g., Assets = CurrentAssets + NoncurrentAssets. Each component has a weight (+1 or -1) indicating addition or subtraction.
Args: params (CalculationTreeInput): Filing ID and filter options.
Returns: str: JSON with calculation trees showing components and weights.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |