Poll and survey results
get_survey_resultsRead all surveys in a room with their status and aggregate results to report polls, quizzes, ratings, and word clouds, and to get survey IDs for closing.
Instructions
Read every survey in a room with its id, kind, status (draft, live or closed) and aggregate results: polls and quizzes are kind=choice with counts per option (a closed quiz also has correct_option_id), ratings have counts and an average, word clouds have words with counts and no options. Use it to report results and to get the survey_id that close_survey takes. Quiz answer keys appear only after a survey closes; no participant identities are ever returned.
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": {
"code": "<code>"
},
"name": "get_survey_results"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Six-character room code, for example ABC234 |