Skip to main content
Glama
Bernstein - Multi-agent orchestration

Bernstein - Multi-agent orchestration

bernstein_cancel

Cancel a task and its subtask tree while the orchestrator keeps running. Stops open, claimed, in-progress, blocked, or planned work without halting other agents.

Instructions

Cancel one task and its subtask tree; the orchestrator keeps running. Cancellable statuses: open, claimed, in_progress, blocked, waiting_for_subtasks, planned. An already-terminal task is reported, not treated as an error. This changes task state on the Bernstein server. Host effects: makes network requests.

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": {
      "task_id": "<task_id>"
    },
    "name": "bernstein_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
task_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.0.3
    • addedInput schema / properties / task_id / not
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        ".",
      +        ".."
      +      ]
      +    },
      +    {
      +      "pattern": "[\\x00-\\x1f]"
      +    }
      +  ]
      +}
  2. Changed1 schema field changedv3.15.0
    • changedInput schema / description
      Previous value: -"Cancel one task and its subtask tree; the orchestrator keeps running. Cancellable statuses: open, claimed, in_progress, blocked, waiting_for_subtasks, planned. An already-terminal task is reported, not treated as an error."New value: +"Cancel one task and its subtask tree; the orchestrator keeps running. Cancellable statuses: open, claimed, in_progress, blocked, waiting_for_subtasks, planned. An already-terminal task is reported, not treated as an error. This changes task state on the Bernstein server. Host effects: makes network requests."
  3. Addedv3.11.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does well: it discloses the state mutation on the Bernstein server, the cascade to the subtask tree, that the orchestrator survives, non-error handling of terminal tasks, and host effects (network requests). It does not address auth/permissions or whether cancellation can be undone, which leaves a meaningful gap for a destructive-feeling operation.

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?

Four compact sentences, front-loaded with the action and scope, then preconditions, edge case, and side effects. Every sentence carries distinct information with no restatement of the name.

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 cascade, allowed states, terminal-case behavior, and side effects. The only notable omission is any meaning for the reason parameter, which is the one thing an agent must invent on its own.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across two parameters, yet the description never mentions task_id or reason. An agent gets no explanation of whether the reason is recorded on the task, surfaced to the user, or merely an audit note. With low coverage the description needed to compensate and does not.

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?

States a specific verb (cancel), a specific resource (one task and its subtask tree), and an explicit scope boundary ("the orchestrator keeps running"). That boundary cleanly distinguishes it from siblings like bernstein_shutdown_orchestrator and bernstein_complete.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete preconditions by enumerating cancellable statuses (open, claimed, in_progress, blocked, waiting_for_subtasks, planned) and clarifies the already-terminal case is reported rather than erroring. It stops short of naming alternative tools or stating when not to cancel, but the status list is strong operative guidance.

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