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.
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": {
"params": "<params>"
},
"name": "xbrl_calculation_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |