Datasource Calculated Fields Delete
datasource_calculated_fields_deleteDelete unused user-created calculated fields from an attached datasource after fail-closed dependency and report-reference checks; previews by default and journals reversible, read-back-verified publication.
Instructions
Delete unused user-created calculated fields from an attached datasource.
Fail-closed safety checks cover the native datasource formula dependency graph and identifier-token references across the full saved report, all pages and resources. Ownerless report matches are blockers; matches explicitly scoped to another datasource are informational. A batch may delete fields that depend on each other, but any dependent outside the batch blocks it. Requires complete formula parsing, matching draft/published, datasource fingerprint, and an unchanged report through the final preflight. Preview by default; publication is journaled, read back, and reversible with operation_restore.
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>",
"field_names": "<field_names>",
"expected_fingerprint": "<expected_fingerprint>"
},
"name": "datasource_calculated_fields_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| report_id | No | ||
| field_names | Yes | ||
| datasource_id | Yes | ||
| allow_shared_source | No | ||
| expected_fingerprint | Yes | ||
| allow_unscanned_shared_consumers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||