Skip to main content
Glama

Cancel ensemble

cancel_ensemble

Stops an ensemble's running and queued members and finalizes it as cancelled with existing results. Use it to halt all active and pending subagent work for a specific ensemble.

Instructions

Stop an ensemble's running and queued members and finalize it as cancelled with whatever results exist.

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": {
      "ensemble": "<ensemble>"
    },
    "name": "cancel_ensemble"
  }
}

Input Schema

NameRequiredDescriptionDefault
ensembleYesEnsemble id or name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A3.6/5.0
Behavior3/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 deliver the key behavioral facts: queued members are also stopped, the ensemble ends in a 'cancelled' terminal state, and existing partial results are preserved. It omits irreversibility, whether the call blocks until members actually stop, and what happens to already-finished members — meaningful gaps for a destructive-style operation with zero annotation coverage.

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?

One sentence, front-loaded with the core action and followed by the resulting state and its effect on partial results. Nothing is redundant or padded.

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?

For a one-parameter lifecycle tool with no output schema, the description covers the essential behavior — scope of the stop and the terminal outcome. A brief note on whether cancellation is reversible or what the caller observes after the call would close the remaining gap.

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?

There is a single parameter and schema description coverage is 100%, with the schema stating 'Ensemble id or name'. The description adds no meaning beyond that, so the baseline of 3 applies.

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?

The description gives a specific verb and scope: stop the ensemble's running and queued members and finalize it as cancelled. That is clearly distinct from single-agent siblings like stop_agent or observer tools like get_ensemble, though it never names an alternative explicitly.

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 only implied by the verb 'cancel' — an agent can infer this is the teardown path for an ensemble, but the description never states when to choose it over stop_agents or stop_agent, nor any preconditions such as the ensemble needing to be active.

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