Skip to main content
Glama

Summarise responses

get_response_stats
Read-onlyIdempotent

Counts, distributions and averages for every field on a form, computed in one call. This is the right tool for almost any question about results: "which option is winning", "what is the average rating", "how many people answered", "which question do people skip", "how many came in per day".

Select, boolean and rating fields come back with a distribution — each option and how many chose it. Number and rating fields also get min, max, sum, mean, median and standard deviation — the sum is what answers "how many kids are coming" or "how many seats do we need". Free-text fields return up to five short excerpts, not the whole corpus; call list_responses when the full text is what the person wants.

Example: { form_id: "…" } or, for a window, { form_id: "…", since: "2026-07-01T00:00:00Z" }

Input Schema

NameRequiredDescriptionDefault
sinceNo
untilNo
form_idYesThe form id from create_form or list_forms, or the slug from its share link (the part after /f/).

Output Schema

NameRequiredDescriptionDefault
by_dayYes
last_atYes
by_fieldYes
first_atYes
completion_rateYes
total_responsesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered; the description adds substantial behaviour beyond that — per-field-type output shape (distributions for select/boolean/rating, min/max/sum/mean/median/stddev for number/rating) and the free-text truncation limit of five excerpts. These are exactly the traits an agent needs to set expectations about the response.

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?

It is longer than most definitions but front-loads the core claim and makes each sentence work: question examples, per-field-type behaviour, sibling routing, then an invocation example. Slight redundancy between the question list and the field-type explanation keeps it from a 5.

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 values need not be spelled out, yet the description still characterises the aggregate fields and the truncation behaviour. Combined with the invocation example, an agent has everything needed to call this correctly.

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 coverage is only 33% — only form_id carries a schema description, while since/until are undocumented. The description partly compensates by showing an example call with a since window and by motivating time-boxed queries ('how many came in per day'), but it never explains until, whether bounds are inclusive, or timezone handling. Partial compensation warrants a 3 rather than a 4.

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?

The description gives a specific verb and resource ('Counts, distributions and averages for every field on a form, computed in one call') and immediately contrasts with the sibling that does something similar, list_responses. An agent can distinguish this summarisation tool from list_responses and export_responses without opening the schema.

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

Usage Guidelines5/5

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

It states the selection rule explicitly ('the right tool for almost any question about results') and enumerates concrete question shapes it answers, then names the exclusion condition: free-text fields return only excerpts, so 'call list_responses when the full text is what the person wants.' When-to-use and when-to-use-something-else are both present.

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.

Resources