Datasource Calculated Fields Edit
datasource_calculated_fields_editEdit datasource calculated field formulas, labels, and aggregation while retaining calc field IDs, with fingerprint conflict checks and formula-cycle rejection before publishing.
Instructions
Edit datasource formulas/labels/aggregation while retaining calc field IDs.
Shared sources require explicit opt-in; unrelated unpublished drafts are rejected. Publishes full draft with journal/read-back/operation_restore. A formula may reference other calculated fields (t0.calc_*); an edit that would close a reference loop is refused with FORMULA_CYCLE. Existing chart references keep their IDs, but new semantics may affect them. ABS/SUM edits with retained IDs, reload and undo verified live. Consumer effects, numeric results and dependency-aware formula edits remain pending.
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>",
"fields": "<fields>",
"expected_fingerprint": "<expected_fingerprint>"
},
"name": "datasource_calculated_fields_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| dry_run | No | ||
| report_id | No | ||
| datasource_id | Yes | ||
| allow_shared_source | No | ||
| expected_fingerprint | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||