Skip to main content
Glama

StudyScout for Business

End a live study early

endStudy
DestructiveIdempotent

End a live study early. This can’t be undone: it closes to new responses for good, and what’s left of its hold goes back to the balance. You keep the responses it has, and pay for those.

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": {
      "studyId": "<studyId>"
    },
    "name": "endStudy"
  }
}

Input Schema

NameRequiredDescriptionDefault
studyIdYes
idempotencyKeyNoAny unique text, sent again unchanged when you retry this call: a retry gets the first answer back and spends nothing twice. Left out, one is made for this call and the answer says which, so a retry can use it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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, yet the description goes further: it states the action is irreversible, that the study closes to new responses permanently, that remaining hold is returned to balance, and that you keep and pay for collected responses. That is concrete consequence and billing context an agent cannot get from the annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, zero filler, with the irreversible consequence front-loaded immediately after the purpose. Every clause carries distinct information (irreversibility, response cutoff, refund, billing).

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?

No output schema exists, and the description conveys the salient outcomes: irreversibility, refund of remaining hold, retention and charge for existing responses. It would be stronger if it noted any precondition (e.g., study must be live) or what the call returns.

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 50%; idempotencyKey is fully documented in the schema, but studyId has no description anywhere. The description adds no meaning to studyId, though its purpose is largely self-evident from the name and the tool's purpose statement.

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?

Specific verb plus resource ('End a live study early') with scope qualifier 'live' and 'early'. It does not name or contrast with siblings such as deleteStudy or withdrawStudy, so an agent must infer the distinction between ending and deleting.

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 condition of use is implied by 'live study' and 'early', and the text notes you keep existing responses, which hints at the end-vs-delete distinction. However, it never explicitly says when to choose this over deleteStudy, withdrawStudy, or waiting for launch/complete, and gives no prerequisites.

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.