Skip to main content
Glama

pio_test_plan_cancel

Stops an in-progress test-plan run at its next safe check and finalizes it as cancelled, retaining completed iteration evidence. Use it to halt long-running test plans by run_id.

Instructions

Request explicit cancellation of an in-progress test-plan run by run_id. The active iteration stops at its next safe check and the run is finalized as cancelled with completed iteration evidence retained.

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": "pio_test_plan_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
run_idYes
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Output Schema

NameRequiredDescriptionDefault
_mcp_instructionsNoServer-issued metadata for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.9.0
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "run_id",
      -  "context"
      -]New value: +[
      +  "run_id"
      +]
  2. Addedv0.6.2

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key traits: cancellation is cooperative ('stops at its next safe check'), the resulting state ('finalized as cancelled'), and data retention ('completed iteration evidence retained'). It omits failure modes and whether the reason parameter is persisted.

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?

Two sentences, front-loaded with the action and identifier, followed by the behavioral consequence. No filler and nothing to trim.

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?

An output schema exists, so return values need no explanation, and the description covers the essential cancellation semantics and evidence retention for a mutation tool lacking annotations. The unexplained reason parameter and unaddressed edge cases (already-finished run, permissions) are the remaining gaps.

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 50%; llm_model and conversation_id are self-documented, but run_id and reason have none. The description clarifies run_id (identifies the in-progress run) but says nothing about what reason does or how it is recorded, so it only partially compensates.

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?

Names a specific verb (request cancellation) and resource (test-plan run), plus the scoping constraint 'in-progress' and the identifier 'run_id'. It is clearly distinguishable from pio_test_plan_start/status/validate by the cancel action, though it never explicitly contrasts with them.

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?

Usage is implied rather than stated: only in-progress runs are cancellable, and the run is addressed by run_id. There is no explicit when-not guidance (e.g. what to do if the run already finished) and no pointer to pio_test_plan_status for checking state first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.