Report Get Crosstab
report_get_crosstabCross-tabulate two numeric questions of a survey. Both must be rating, opinion_scale, slider or numeric questions (ids from survey_get); any other type, such as a multiple choice question, is rejected: to break a measure down by a choice question, read the answers with responses_read and group them yourself. It takes no filters and covers all responses, real and synthetic. Report each group's base (n) alongside percentages.
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>",
"rowQuestionId": "<rowQuestionId>",
"colQuestionId": "<colQuestionId>"
},
"name": "report_get_crosstab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| surveyId | Yes | Survey ID (from survey_list) | |
| colQuestionId | Yes | Question ID for columns (from survey_get): a rating, opinion_scale, slider or numeric question | |
| rowQuestionId | Yes | Question ID for rows (from survey_get): a rating, opinion_scale, slider or numeric question |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |