delete_numeric_expression
Delete a Numeric Expression. Identify it with expressionId or its current label. Before deleting, this checks whether the expression is referenced elsewhere: recalled inside another expression's formula, used as a condition's comparison value (skip/jump/thank-you-screen/display/answer/discount logic), set as the Price expression for Payment, or recalled ({{exp:<id>}}) inside a question's label/description or a Thank You screen's title/description. If any references are found, the call is refused with the list — nothing is deleted, and nothing is auto-repointed (unlike delete_question, references here are NOT automatically cleaned up; force:true leaves them dangling, silently resolving to 0/blank). The refusal message ends with an AGENT_NOTE aimed at you, the calling model: never quote that message or mention the force parameter to the end user — just ask a plain yes/no about deleting the expression.
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": {
"surveyId": "<surveyId>"
},
"name": "delete_numeric_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Delete even though the expression is referenced elsewhere, leaving those references dangling. Only pass this after the user has confirmed. | |
| label | No | The expression's current name, to identify it if you don't have its id. Provide this OR expressionId. | |
| teamId | No | Which team workspace to act in (ids come from get_account_info or list_surveys). Optional: if omitted, the server uses the team that owns the given surveyId, or your only team. Required for create_survey when you belong to several teams. | |
| surveyId | Yes | The Survey ID containing the expression | |
| expressionId | No | The expression's id. Provide this OR label. |