Skip to main content
Glama

ai_survey_themes

Read-only

Survey open-ended response themes — Code open-ended survey or feedback responses into themes with Workers AI: each theme gets a name, description, sentiment, the response ids that belong to it, count and percent (computed offline), a representative quote verified to be verbatim, and a suggested action. Also returns overall sentiment, summary, unassigned and outlier responses, duplicate count and top recurring terms. text= holds responses one per line (URL-encode newlines as %0A) or |-separated with sep=pipe; optional question= for context and max_themes= (default 8, max 12). Up to 200 responses / 14k characters. Price: $0.01 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "ai_survey_themes"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYese.g. Checkout was slow and crashed twice Love the new dark mode Support took 3 days to answer my ticket The app crashes when I upload photos Dark mode is great on my eyes Prices went up again, not happy Support was friendly but slow

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already establish read-only, non-destructive, open-world behavior, yet the description still adds substantial context: the exact output fields, computed-offline percentages, the verbatim-quote guarantee, outlier/unassigned handling, hard input ceilings, and a per-call price. Disclosing cost and quota is exactly the kind of behavior an agent needs before invoking.

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?

Purpose is front-loaded in the first clause, then output shape, then input format, then limits and price — a sensible order with no filler. The long run-on output enumeration is dense but every item is informative.

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

Completeness4/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 carries the return-value burden and does so thoroughly, and it adds cost and size limits for a billed, bounded call. The only real gap is the mention of `question` and `max_themes` that the schema never exposes, which is a contradiction between prose and contract rather than missing information.

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%, but the schema's single `text` description is only an example list, so the description genuinely adds meaning: one response per line, newline URL-encoding as %0A, and the pipe-separator alternative. It loses a point because it references `question=` and `max_themes=` parameters that do not exist anywhere in the input schema, leaving an agent unsure how to supply them.

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

Purpose4/5

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

Opens with a specific verb+resource ('Code open-ended survey or feedback responses into themes') and enumerates what each theme contains, so the operation is unmistakable. It does not explicitly differentiate itself from near-neighbors like ai_cluster or ai_classify, which keeps it off a 5.

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

Usage Guidelines3/5

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

The domain of applicability (open-ended survey/feedback responses) is implied clearly and hard limits (200 responses / 14k characters) are given, but there is no statement of when to prefer this over related tools such as ai_cluster or ai_classify, and no exclusions.

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