Skip to main content
Glama

Poll and survey results

get_survey_results
Read-onlyIdempotent

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.

Input Schema

NameRequiredDescriptionDefault
codeYesThe room's six-character code (letters and digits, any case), from list_rooms or create_room.

Output Schema

NameRequiredDescriptionDefault
roomYes
surveysYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / code / description
      Added value: +"The room's six-character code (letters and digits, any case), from list_rooms or create_room."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "properties": {
      +    "room": {
      +      "properties": {
      +        "closed_at": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "code": {
      +          "type": "string"
      +        },
      +        "counts": {
      +          "properties": {
      +            "active": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "answered": {
      +              "description": "Included in questions.",
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "participants": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "pending": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "questions": {
      +              "description": "Approved and answered questions.",
      +              "minimum": 0,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "questions",
      +            "pending",
      +            "answered",
      +            "participants",
      +            "active"
      +          ],
      +          "type": "object"
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "description": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "opened_at": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "status": {
      +          "description": "prepared: not joinable yet; open: live; closed: not joinable, content stays readable.",
      +          "enum": [
      +            "prepared",
      +            "open",
      +            "closed"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "name",
      +        "status",
      +        "description",
      +        "created_at",
      +        "opened_at",
      +        "closed_at",
      +        "counts"
      +      ],
      +      "type": "object"
      +    },
      +    "surveys": {
      +      "items": {
      +        "properties": {
      +          "average": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "correct_option_id": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "kind": {
      +            "enum": [
      +              "choice",
      +              "rating",
      +              "word_cloud"
      +            ],
      +            "type": "string"
      +          },
      +          "max_label": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "min_label": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "mode": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "single",
      +                  "multiple"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "options": {
      +            "items": {
      +              "properties": {
      +                "count": {
      +                  "anyOf": [
      +                    {
      +                      "minimum": 0,
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "id": {
      +                  "type": "string"
      +                },
      +                "label": {
      +                  "type": "string"
      +                },
      +                "position": {
      +                  "type": "integer"
      +                },
      +                "score": {
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "label",
      +                "position",
      +                "count"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "position": {
      +            "type": "integer"
      +          },
      +          "question": {
      +            "type": "string"
      +          },
      +          "respondents": {
      +            "anyOf": [
      +              {
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "results_public": {
      +            "type": "boolean"
      +          },
      +          "status": {
      +            "description": "draft: not launched; live: taking answers; closed: no longer taking answers.",
      +            "enum": [
      +              "draft",
      +              "live",
      +              "closed"
      +            ],
      +            "type": "string"
      +          },
      +          "words": {
      +            "items": {
      +              "properties": {
      +                "count": {
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "word": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "word",
      +                "count"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "kind",
      +          "question",
      +          "status",
      +          "position",
      +          "mode",
      +          "results_public",
      +          "respondents",
      +          "options"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "room",
      +    "surveys"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only, idempotent and non-destructive, but the description adds genuinely new behavior: quiz answer keys appear only after a survey closes, and no participant identities are ever returned. Both are non-obvious constraints an agent must know before reporting results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and result taxonomy, with workflow guidance last. It is dense but every clause maps to something an agent needs (status values, per-kind result shapes, answer-key timing); only the per-kind enumeration is slightly more detail than strictly necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is optional, yet the description still supplies the semantic distinctions an agent needs (choice vs rating vs word cloud, closed-quiz-only answer keys). Combined with full schema coverage and complete annotations, nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single code parameter is fully documented in the schema, including its pattern and source tools. The description says nothing about code, so this is the baseline case where the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (read) and resource (every survey in a room) plus the shape of what comes back: id, kind, status, aggregate results. This clearly separates it from siblings like get_room_qa or list_rooms, which return different resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says what it is for ('report results') and links it into a workflow by naming close_survey and the survey_id that tool needs. It does not state when-not-to-use it or contrast with get_room_qa, so it stops short of the top score.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.