Skip to main content
Glama

取消配音任务

cancel_dubbing_task
Idempotent

取消尚未完成的异步配音任务,已冻结的预估积分立即全额解冻。已完成(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

Output Schema

NameRequiredDescriptionDefault
dataNo上游取消结果(含 cancelled/status 等)
requestIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: immediate full unfreeze of held credits, no billing, and a hard state restriction. Annotations already cover idempotency and non-destructiveness, and nothing here contradicts them, but the description leaves open what error or state the caller sees when cancelling an already-finished task.

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 clauses: what it does, the credit consequence, the exclusion and cost. Zero filler and the primary action is front-loaded.

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?

With an output schema present and rich annotations, the description only needs to cover when the call is valid and what side effects occur, which it does. Only minor gaps remain around post-cancel task state and error behavior.

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?

Single required parameter with 100% schema description coverage, so the schema already explains that taskId comes from dubbing_submit. The description adds no further detail about the identifier's format or source, so baseline 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?

States a specific verb+resource (cancel an unfinished async dubbing task) plus the immediate side effect (frozen estimated credits are fully unfrozen). It is clearly not get_dubbing_task or dubbing_submit, though it never names a sibling explicitly to route between them.

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 an explicit validity condition (task must not be finished) and an explicit exclusion (succeeded/partial tasks cannot be cancelled), which is strong when-to-use guidance. It stops short of naming an alternative tool or describing what to do instead for a finished task.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources