Skip to main content
Glama

取消配音任务

cancel_dubbing_task
Idempotent

Cancel an unfinished asynchronous dubbing task by task ID to immediately release its frozen estimated credits; completed tasks cannot be canceled and no fee is charged.

Instructions

取消尚未完成的异步配音任务,已冻结的预估积分立即全额解冻。已完成(succeeded/partial)的任务不可取消。不计费。

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": {
      "taskId": "<taskId>"
    },
    "name": "cancel_dubbing_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesdubbing_submit 异步返回的任务 ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, idempotentHint=true, and openWorldHint=true, so the safety profile is largely supplied. The description adds real value with two facts annotations cannot express: frozen estimated credits are released in full immediately, and the call is not billed. It does not describe the returned confirmation or what happens if the task is mid-transition, so it sits at a solid mid-to-upper level rather than full disclosure.

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, front-loaded with the action and eligibility rule, followed by the credit-release consequence and the exclusion. Nothing is padded and nothing repetitive appears.

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 single-parameter cancel operation with no output schema, the definition covers eligibility, financial side effects, and cost. The only remaining gap is what the call returns on success or failure, which is minor given the absence of an output schema.

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 only one parameter and schema coverage is 100%, with the schema itself explaining that taskId comes from an asynchronous dubbing_submit call. The description usefully constrains which taskIds are valid (must not be succeeded/partial), but adds no format, type, or sourcing detail beyond that constraint, so the baseline applies.

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?

The description names a specific verb+resource (取消...异步配音任务) and narrows it to unfinished tasks, which distinguishes it from status-reading siblings such as get_dubbing_task and from submission via dubbing_submit (referenced in the taskId schema). An agent can tell exactly what operation this performs.

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?

It states the eligibility condition (only unfinished tasks) and an explicit when-not (succeeded/partial tasks cannot be cancelled), which is the key decision criterion for a cancel tool. It stops short of routing the agent to a sibling for the excluded cases (e.g., get_dubbing_task to confirm state), so it is clear but not fully exhaustive.

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