Formula References
formula_referencesValidates a formula expression and lists the direct field references it contains, so you can confirm which datasource fields a formula uses before editing or saving.
Instructions
Validate expression and read direct field occurrences from the native editor AST.
Uses internal ns.field names from datasource_get. String literals are not references. Source fingerprint checked across validation and parsing. Positions are UTF-16 code units, not Python character indices. This is not a transitive dependency graph, parameter inventory or deletion approval.
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>",
"expression": "<expression>"
},
"name": "formula_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| report_id | No | ||
| expression | Yes | ||
| datasource_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||