Skip to main content
Glama

Cancel youtube import

cancel_youtube_import
DestructiveIdempotent

Cancel this account's pending YouTube audio import when the user asks. Check can_cancel first. An import that already finished keeps its Quick draft. Does not cancel karaoke processing.

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": {
      "import_id": "<import_id>"
    },
    "name": "cancel_youtube_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
import_idYes

Output Schema

NameRequiredDescriptionDefault
errorNo
stageNo
statusNo
import_idNo
can_cancelNo
error_codeNo
project_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds meaningful consequences: only pending imports are cancellable, a finished import retains its Quick draft, and karaoke processing is unaffected. It does not say whether cancellation is reversible or what a failed cancel looks like, so it earns a 4 rather than a 5.

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, followed by the gate and the exception. Every sentence carries distinct information with no repetition of the annotations or schema.

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 values need no explanation, and the description covers the key edge cases (finished import, karaoke exclusion) plus the can_cancel gate. The remaining gap is the identifier: nothing tells the agent where import_id comes from or what the account scoping constraint means.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the parameter meaning, but it never mentions import_id, its 32-hex format, or how to source it (presumably from get_youtube_import). A caller learns only implicitly that the import belongs to 'this account'.

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 and resource ('Cancel this account's pending YouTube audio import') and scopes it with 'pending', which separates it from cancel_karaoke and from get_youtube_import. The final sentence explicitly excludes karaoke processing, so an agent can route correctly without opening the 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?

Gives a clear trigger ('when the user asks') and a prerequisite ('Check can_cancel first'), which is actionable guidance. It never names the sibling tool an agent should call to obtain can_cancel (get_youtube_import), leaving one inference step, so it falls short of a 5.

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