Datasource Fields Edit Metadata
datasource_fields_edit_metadataEdit datasource field labels, descriptions, types, aggregation, and visibility while preserving unknown metadata and safely checking formula and report dependencies before changes.
Instructions
Edit field labels, descriptions, types/semantics, aggregation or visibility.
Works for physical and calculated fields while retaining identity and all unspecified/unknown metadata. data_type and semantic_config must be supplied together because changing one alone creates inconsistent field semantics. Type, aggregation, and disabling changes inspect datasource formula dependents and full-report saved references; used fields require allow_in_use=true. Shared sources additionally require allow_shared_source=true and preview reports their external impact scope. Matching draft/published and source fingerprint are required. The report fingerprint is guarded through publication; full-draft publish 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>",
"changes": "<changes>",
"expected_fingerprint": "<expected_fingerprint>"
},
"name": "datasource_fields_edit_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | ||
| dry_run | No | ||
| report_id | No | ||
| allow_in_use | No | ||
| datasource_id | Yes | ||
| allow_shared_source | No | ||
| expected_fingerprint | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||