Skip to main content
Glama

cancel_transfer

Idempotent

Остановить идущий перенос. Уже скопированные файлы остаются на цели — отката нет. На завершённом переносе: скрывает его из истории, данные не трогает. Ошибка 404 — перенос не найден.

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": {
      "transfer_id": "<transfer_id>"
    },
    "name": "cancel_transfer"
  }
}

Input Schema

NameRequiredDescriptionDefault
transfer_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the key consequence: already-copied files stay at the destination and there is no rollback. It also documents the divergent behavior on a completed transfer (hidden from history, data untouched) and the 404-not-found case, which are exactly the traits an agent needs before invoking a cancel operation.

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?

Four short sentences, each carrying distinct information, with the primary effect and the no-rollback caveat front-loaded. No filler or repetition of the title.

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 mutation with no output schema, the description covers side effects, the completed-transfer edge case, and the error path. Only the provenance of transfer_id is missing, which is a minor but real omission.

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% for the single transfer_id parameter, so the description must carry the load. The 404 note implies the ID is looked up and validated, but the description never says where to obtain transfer_id (e.g., from list_transfers or get_transfer), leaving a real gap.

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 first sentence gives a specific verb+resource (stop an in-progress transfer), which is unambiguously distinct from siblings like get_transfer, list_transfers, and create_transfer. It does not explicitly name an alternative tool, so it falls short of a 5.

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 rather than stated: the description explains what happens on an active transfer versus a completed one, which effectively tells the agent this tool applies to any transfer ID. However, there is no explicit when-to-use/when-not-to-use guidance versus siblings such as delete_file or get_transfer, nor any prerequisite on obtaining the ID.

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