Datasource Dependencies
datasource_dependenciesInspect calculated-field dependency graphs, reverse edges, and cycles in a datasource before changing formulas; optionally test expression overrides to detect proposed cycles.
Instructions
Inspect datasource formula field graph, reverse edges and one cycle if found.
Validates each calculated field sequentially; cost grows with formula count. Requires matching draft/published. Validation failures produce partial output, never proof of no dependencies. Does not cover report consumers or parameters and does not authorize field deletion. No source/report mutation. Optional overrides replace expressions in the inspected graph only, using fully qualified field_id (t0.calc_*). Detects proposed cycles, but expression types are validated against the CURRENT source, not propagated future types.
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": {
"datasource_id": "<datasource_id>"
},
"name": "datasource_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overrides | No | ||
| report_id | No | ||
| datasource_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||