get_numeric_expression
Read one Numeric Expression (by expressionId or label) or, with both omitted, every expression in the survey. Decodes the stored formula's {{que:id}}/{{exp:id}} recall tokens back to readable question/expression labels (readableFormula, e.g. "20+[1. How satisfied are you?]-[6. How likely are you to return?]...") and flags hasDanglingReference: true on any expression containing a token whose question/expression id no longer exists — the exact failure mode behind "my expression returns 0 / doesn't return the expected sum": nothing in the BlockSurvey builder itself validates a stored expression's tokens, so a stale or malformed one is otherwise invisible until a respondent's score comes back wrong. Use this to diagnose that before rebuilding an expression from scratch. Also returns each expression's conditional overrides (if any, decoded the same way) and its recallToken ({{exp:<id>}}) — only paste that into update_question / update_thankyou_screen if the user separately asks to display the score somewhere, never on your own initiative.
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": "get_numeric_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Read only this expression, by its current name. Provide this OR expressionId OR neither (to list all). | |
| 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 to read expressions from | |
| expressionId | No | Read only this expression, by id. Provide this OR label OR neither (to list all). |