Skip to main content
Glama

omp_cancel_task

Cancels a running background omp task and terminates its local omp process; returns the active model name for transparency.

Instructions

取消正在运行的后台 omp 任务并终止对应的本地 omp 进程。重要提示:调用本工具及向用户汇报结果时,必须明确告知用户当前通过 omp 调用的模型名称(以返回结果中的模型提示行为准)。

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

Input Schema

NameRequiredDescriptionDefault
task_idYesomp_start_task 返回的 task_id。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden, and it does deliver key information: the call terminates a local omp process, which is a destructive, irreversible side effect, plus a mandatory model-name reporting obligation. It omits error behavior, idempotency for unknown or already-completed task_id values, and whether the cancellation is graceful or immediate.

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 purpose clause is front-loaded in a single efficient sentence. The second sentence is a compliance addendum rather than tool-selection content, but it is short and clearly separated from the primary statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter mutation tool with no annotations and no output schema, the definition covers purpose and the main side effect but leaves behavioral edges (already-completed tasks, invalid task_id, return payload shape beyond the model hint line) unaddressed.

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 100% and the only parameter, task_id, is already documented in the schema as coming from omp_start_task. The description adds no format, validation, or failure semantics 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 names a specific verb and resource: cancel a running background omp task, and adds the concrete side effect of terminating the local omp process. The action is clearly distinct from the siblings (omp_start_task, omp_run_task, omp_task_status), though it never explicitly contrasts itself 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?

The qualifier 'running background' implies the applicable scope, so an agent can infer that this targets in-flight tasks rather than completed ones. However, there is no explicit when-to-use/when-not guidance, no mention of what happens if the task has already finished, and no reference to omp_task_status as the check-before-cancel alternative.

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