Skip to main content
Glama
hect0x7

JMComic AI

by hect0x7

cancel_download

Request cooperative cancellation of a background manga download by task ID. Does not delete completed files; returns unfinished IDs for later retry.

Instructions

请求协作式取消共享任务目录中的后台下载,重复取消安全。

返回 cancel_requested/cancelling 表示已发信号,必须继续查询到终态;进行中的 HTTP 请求会先结束。 不删除已下载文件,最终结果保留完成项及 unfinished_ids,可用 retry_download 续下。

Input Schema

NameRequiredDescriptionDefault
task_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.9

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: cooperative cancellation, idempotent re-cancel, in-flight HTTP requests finish first, files are NOT deleted, and the final result preserves completed items plus unfinished_ids. This is far richer than a bare 'cancel' and discloses side effects and lifecycle behavior clearly.

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?

Front-loaded with the action and scope, then lifecycle and side-effect details. Sentences each carry distinct information (idempotency, polling requirement, file retention, resume path) with little redundancy.

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 payloads needn't be spelled out, yet the description usefully characterizes the terminal result (completed items + unfinished_ids). Combined with lifecycle and idempotency notes, an agent has enough to invoke and follow through correctly.

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 0% and the single task_id parameter is undocumented in both schema and description. The description implies the task lives in a shared task directory but never states the expected id format or source, so it only partially compensates for the coverage gap.

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) plus resource (background download task in a shared task directory) and immediately distinguishes the operation as cooperative. An agent can tell it apart from retry_download, start_download, and get_download_task without opening any schema.

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?

Explicitly notes that repeated cancellation is safe (idempotency guidance) and points to retry_download for resuming unfinished items, plus tells the agent to keep polling to terminal state. It lacks an explicit 'when not to use' clause, but the usage context is clear.

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