Skip to main content
Glama
mcp-file-downloader

mcp-file-downloader

by QianJue-CN

cancel_download

Cancels an in-progress download by task ID and removes its temporary files to stop unwanted transfers and free storage.

Instructions

取消下载任务并清理相关的临时文件

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_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYes要取消的下载任务ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses that related temporary files are cleaned up, but it does not say whether cancellation is irreversible, what happens to partial downloads, whether permissions are required, or what occurs if the task is already completed.

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?

The description is a single compact sentence that front-loads the primary action and includes the cleanup consequence without redundant wording. Every part of the sentence contributes useful information.

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 simple one-parameter cancellation tool, the description covers the core action and an important side effect. However, with no annotations or output schema, it leaves notable gaps around irreversibility, error behavior, and the task states in which cancellation is valid.

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 description coverage is 100%, and the single required taskId parameter is documented in the schema. The description adds no additional meaning about parameter format, constraints, or lookup behavior, so the baseline score of 3 is appropriate.

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 states a specific action and resource: cancel a download task, plus the side effect of cleaning up temporary files. It is clear on its own, though it does not explicitly distinguish cancellation from sibling operations such as pause_download or resume_download.

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?

Usage is implied by the verb 'cancel' and the cleanup side effect, but the description does not state when an agent should cancel versus pause, resume, or simply check status. No prerequisites, exclusions, or alternative tools are named.

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