Skip to main content
Glama

AdsAgent — TikTok Ads MCP

tasks_cancel

Cancel one pending task owned by the current user. WRITE — call is IMMEDIATE. Only tasks in pending state can be cancelled (already-running tasks must complete on their own). Tenant-isolated. Mirror of Meta MCP tasks_cancel.

REQUIRED: task_id (str — UUID). EXAMPLE: tasks_cancel({"task_id": ""})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of disclosing behavior. It explicitly flags this as a WRITE operation, notes that the call is IMMEDIATE, limits cancellation to pending tasks, and mentions tenant isolation. It stops short of describing return values or failure modes, but the main behavioral risks are covered.

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?

The description is well-structured and front-loaded, with the core purpose stated first, followed by behavioral constraints and an example. The phrase 'Mirror of Meta MCP tasks_cancel' adds limited value and could be mildly confusing, but the overall structure remains tight.

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 write tool with no output schema, the description covers the essential context: what it does, when it applies, the required input, and an example. It does not describe the response or error behavior, but the essential usage context is largely complete.

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

Parameters4/5

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

Schema description coverage is 0%, but the description compensates by specifying the parameter as 'task_id (str — UUID)' and providing a concrete example. This adds meaningful type and format context beyond the bare schema field 'Task Id'.

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?

The description states a specific action ('Cancel one pending task owned by the current user') with a clear verb, resource, and scope. It is readily distinguishable from sibling tools like tasks_list or tasks_get_status, which are about querying rather than mutating tasks.

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?

The description provides clear context: only tasks in 'pending' state can be cancelled, and already-running tasks must complete on their own. It does not explicitly name alternative tools for checking status, but it does give a clear precondition and ownership constraint ('owned by the current user').

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