Skip to main content
Glama

get_survey_results

Read-only

Read what customers ANSWERED in this workspace's surveys. A survey is any flow marked isSurvey: its choice questions record which option each contact tapped, and its free-text questions store the reply the contact typed. Called with NO flowId it lists every survey flow with how many people it reached, how many answered, the response rate and how many wrote a free-text answer. Called with a flowId it returns that survey per question: every option with its share of the people who answered it, and the written answers in the customers' own words. These are stated reasons, not inferred ones — the strongest evidence available for what to change, and far stronger than a dropoff rate, which only shows where people stopped and never why. Counts are DISTINCT contacts. Read-only, computed on demand over the last 30 days unless you pass days.

Input Schema

NameRequiredDescriptionDefault
daysNoHow many days back to count answers, between 1 and 90. Defaults to 30.
flowIdNoSurvey flow id, from the listing this tool returns without arguments. Omit to list every survey of the workspace. An id that is not a survey flow of this workspace fails with MCP_SURVEY_FLOW_NOT_FOUND.
splitGoalKeyNoOptional goal key: each choice option is additionally split into the contacts that ever reached this goal and those that never did, which shows whether an answer predicts conversion.
applicationIdNoApplication (workspace) id. Optional: an application-scoped key (app_...) defaults to its own application, but a personal key (usr_...) has no default and omitting it fails with MCP_APPLICATION_REQUIRED. Call list_applications to get the id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, so the safety profile is known; the description adds genuinely non-obvious traits beyond that: counts are DISTINCT contacts, results are computed on demand, and the window defaults to the last 30 days unless days is passed. It does not mention pagination or result-size limits for large surveys, which is the remaining behavioral gap.

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 the mode split, and every sentence carries information — the dropoff-rate contrast justifies the tool's place rather than padding. It is on the long side (roughly seven sentences) and the mode descriptions could be tightened, but nothing is redundant with structured fields.

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?

With no output schema, the description fully carries the burden: it describes the return shape in both modes (per-survey reach/answered counts and response rate, versus per-question option shares and verbatim answers). Combined with the default window, distinct-count semantics, and the schema's documented error for invalid flowId, an agent has everything needed to call it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description goes further by explaining the behavioral fork of flowId ('Called with NO flowId it lists every survey flow... with a flowId it returns that survey per question') and the days default. splitGoalKey is left entirely to the schema, which documents it well, so the description does not add there.

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 and resource ('Read what customers ANSWERED... in surveys') and defines the resource precisely ('any flow marked isSurvey'). It also distinguishes the two operating modes (no flowId = listing, with flowId = per-question detail), which no sibling tool does, so an agent can separate it from get_flow_analytics or get_funnel_analytics.

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?

Gives clear context for when this tool is the right evidence source, contrasting it explicitly with dropoff rate: 'far stronger than a dropoff rate, which only shows where people stopped and never why.' It stops short of naming a sibling tool to use instead when dropoff data is what's wanted, so there is no explicit exclusion or routing statement.

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.