add_calculated_field
Add a calculated field to the datasource.
Instructions
Add a calculated field to the datasource.
For formula syntax and best practices, read: read_resource('cwtwb://skills/calculation_builder')
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": {
"field_name": "<field_name>",
"formula": "<formula>"
},
"name": "add_calculated_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| formula | Yes | ||
| datatype | No | real | |
| field_name | Yes | ||
| field_type | No | ||
| table_calc | No | ||
| internal_name | No | ||
| default_format | No | ||
| validate_formula | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |