Skip to main content
Glama

SurveysAI Qualitative Analysis – interview and focus group analysis

Start a paid analysis

qualitative_start_analysis
DestructiveIdempotent

Starts a paid, prepaid analysis package from text inputs; the whole quoted price is charged in credits immediately. Call it only after the user approved the quoted price from qualitative_quote_analysis (show price, model and effort first). Requires sign-in (OAuth connector or API key) with the runs:write scope. Pass quoted_price_credits, expected_model and expected_effort from that quote: if the price or the model changed, the call fails with quote_stale or model_changed and nothing is charged; show the new values to the user and ask again. Inputs are JSON text only (inputs.transcript: 1-10 items {name, text}; every other slot: one item), at most about 1 MB of text per call; larger inputs need the REST API with a multipart upload. It returns at once with a run_id; the analysis runs in the background, so follow it with qualitative_get_run. Do not call this tool again to check progress. Without an idempotency_key the key is derived from the exact input, so an identical call within 24 hours returns the same analysis (replayed: true) and is not charged again (after 24 hours it starts and charges a new one); to deliberately start a second identical analysis, pass a new idempotency_key. Without enough credits it answers payment_required and charges nothing; credits are managed in the user's SurveysAI account on the website.

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": {
      "title": "<title>",
      "preset_id": "<preset_id>",
      "analysis_brief": "<analysis_brief>",
      "quoted_price_credits": "<quoted_price_credits>",
      "expected_model": "<expected_model>",
      "expected_effort": "<expected_effort>",
      "inputs": "<inputs>"
    },
    "name": "qualitative_start_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesShort title of the analysis, shown in the web app.
inputsYesInput texts by slot: transcript 1-10 items {name, text}, every other slot one item. At most about 1 MB of text in total; larger inputs need the REST API.
languageNoAnalysis output language, a BCP 47 code such as en, cs or de.en
preset_idYesA preset id from qualitative_list_presets.
analysis_briefYesThe research objective (required, up to 5000 characters) and optional context.
expected_modelYesThe `model` of the approved quote.
expected_effortYesThe `effort` of the approved quote (null when the quote has none).
idempotency_keyNoOptional key (printable ASCII, at most 255 characters). Omit it normally: the key is derived from the exact input, so an identical call within 24 hours returns the same analysis (`replayed`: true) and is not charged again. To deliberately start a second identical analysis, pass a new idempotency_key.
report_audienceNo
report_languageNo
selected_reportsNo
quoted_price_creditsYesThe `price_credits` of the quote the user approved (qualitative_quote_analysis). A higher server price fails with quote_stale and charges nothing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing charge timing (immediately, in credits), auth requirements (OAuth connector or API key with runs:write), failure modes with cost implications (quote_stale, model_changed, payment_required all charge nothing), the 1 MB per-call text ceiling, and the 24-hour derived-idempotency replay that avoids double billing. This is exactly the kind of context destructiveHint alone cannot convey.

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 money-charging fact and the quote prerequisite, and every sentence carries operational information. The middle section is dense and semicolon-chained (idempotency, limits, error codes all in one block), so it is slightly harder to scan than ideal, but nothing is padding.

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?

For a 12-parameter, nested-object, no-output-schema mutation tool this covers everything an agent needs: required preconditions, credit risk, auth scope, size limits, expected return (immediate run_id, background execution, replayed: true), and the follow-up tool. The absence of an output schema is fully compensated.

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 75%, so the schema already documents most fields; the description still adds cross-tool meaning that the schema cannot — quoted_price_credits, expected_model and expected_effort must be copied from the approved quote, and mismatches fail without charge. It also explains the otherwise non-obvious idempotency_key semantics (normally omit; pass a new one to force a duplicate).

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?

Opens with a specific verb and resource plus the defining trait: 'Starts a paid, prepaid analysis package from text inputs; the whole quoted price is charged in credits immediately.' It is clearly distinct from qualitative_quote_analysis (pricing) and qualitative_get_run (progress), both named in the text.

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?

Explicit preconditions ('Call it only after the user approved the quoted price from qualitative_quote_analysis'), a required user-facing step (show price, model and effort first), an exclusion ('Do not call this tool again to check progress' → use qualitative_get_run), and an escape hatch for oversized inputs (REST API multipart upload).

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