Display Logic Rule Create
display_logic_rule_createAdd one condition to a display logic group (draft surveys only); the group's 'and'/'or' combines its rules. displayLogicGroupId comes from display_logic_list or display_logic_container_create. Conditions by source question type: multiple_choice, dropdown, ranking, constant_sum: is_selected_option with { idx } (0-based index into answer_options, or "none" / "other"). opinion_scale, slider, rating, numeric: is_number_less, is_number_greater, is_number_equal_to, is_number_not_equal_to with { value: number }. date: is_date_on, is_date_not_on, is_date_before, is_date_later with { date: "YYYY-MM-DD" }. matrix: is_matrix_selected with { rowIdx, colIdx } (0-based). short_text, long_text: is, is_not (AI meaning match) with { value }. short_text, long_text, email, phone_number, website: string_contains, string_does_not_contain, is_string_equal_to, is_string_not_equal_to, string_begins_with, string_ends_with with {}, then set the text with display_logic_rule_update_text. URL parameter sources: is, is_not with { value: "" }. A decision question cannot be a source. The target question shows when its logic matches and is hidden otherwise. A URL parameter must be declared type "enum_" and the value must be one of its enumValues.
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": {
"displayLogicGroupId": "<displayLogicGroupId>",
"surveyId": "<surveyId>",
"ruleCondition": "<ruleCondition>",
"args": "<args>"
},
"name": "display_logic_rule_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Arguments for the rule. Answer-sourced e.g. {value: "yes"}, {idx: 0} for the first option, {value: 9}, {date: "2024-01-01"}, {rowIdx: 0, colIdx: 1}. URL-param-sourced: {value: "<enum value>"}. | |
| surveyId | Yes | The survey ID | |
| ruleCondition | Yes | Type of comparison. For url-param-sourced groups only "is"/"is_not" are valid. is_number_euqal_to and is_number_not_euqal_to are older spellings of is_number_equal_to and is_number_not_equal_to. | |
| displayLogicGroupId | Yes | Group ID to add rule to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |