Skip to main content
Glama

SurveysAI Qualitative Analysis – interview and focus group analysis

Cancel an analysis

qualitative_cancel_analysis
DestructiveIdempotent

Stops an analysis package for good. Refund rule: if the work failed on our side (refund_on_cancel true in qualitative_get_run), the whole package price is refunded to the credit balance; cancelling a healthy or still running package refunds nothing and the charge stays; a completed package cannot be cancelled. Ask the user before cancelling. Requires sign-in (OAuth connector or API key) with the runs:write scope, and the key's owner must own the analysis. It does not delete the analysis or its data. To resume failed work without cancelling use qualitative_retry_analysis.

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": {
      "run_id": "<run_id>"
    },
    "name": "qualitative_cancel_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesThe analysis id (`run_id`) from qualitative_list_runs or qualitative_start_analysis.
idempotency_keyNoOptional key (printable ASCII, at most 255 characters). Pass idempotency_key to make your own retries safe: repeating the call with the same key returns the original result instead of acting again. If omitted, every call gets its own fresh key.

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 destructiveHint=true and idempotentHint=true, but the description goes well beyond them: it spells out the refund rule per outcome (failed on our side vs. healthy/running vs. completed), that the charge otherwise stays, the OAuth/API-key requirement plus runs:write scope and key-owner ownership, and that underlying data survives cancellation.

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?

The core action is front-loaded in the first sentence and the refund/auth/alternative details follow in a logical order with no filler. It is dense and slightly long for a single outcome description, though nearly every clause carries decision-relevant information.

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 destructive, irreversible mutation with no output schema, the description covers everything an agent needs before calling: consequences, refund economics, auth and ownership preconditions, the user-consent requirement, and the safer alternative. No material gap remains.

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 run_id source and idempotency_key retry semantics are fully documented there, so the baseline of 3 applies. The description adds only indirect parameter context by pointing at qualitative_get_run for the refund_on_cancel precondition.

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 ('Stops an analysis package for good') and immediately bounds the scope by stating what it does not do ('does not delete the analysis or its data'). It is clearly distinguishable from qualitative_retry_analysis, which it names as the non-cancelling alternative.

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 when-to-use and when-not-to-use: completed packages cannot be cancelled, and failed work that should be resumed should go to qualitative_retry_analysis instead. It also adds an operational guardrail, 'Ask the user before cancelling,' that no sibling name or schema field would convey.

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