Skip to main content
Glama

antigravity_cancel

Stops a running task by task ID, halting execution when work should no longer continue.

Instructions

Stop a running task.

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": {
      "task_id": "<task_id>"
    },
    "name": "antigravity_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes
project_dirNoAbsolute path of the project folder Antigravity works in. Defaults to the current working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description bears the full behavioral burden and provides almost nothing: it does not say whether cancellation is destructive, whether partial work or state is preserved, whether the task can be resumed, or what the response confirms. Only the word "running" hints at a precondition, leaving the mutation's effects opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single short sentence is front-loaded and free of waste, but its brevity reflects under-specification rather than disciplined compression. It is appropriately compact for a title, not for an agent-facing tool description.

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?

There is no output schema and no annotations, and the description covers none of the details an agent needs for a termination operation, such as error conditions or the project_dir scope. For a two-parameter mutation tool it should do considerably more than one line.

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 coverage is only 50%, and the description adds zero parameter meaning. The undocumented task_id — the required parameter and the core identifier — gets no explanation of format, source, or behavior on invalid values, so the description does not compensate for the coverage 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?

"Stop a running task" gives a concrete verb (stop) and resource (task) with a state qualifier (running), which separates it reasonably well from siblings like antigravity_wait and antigravity_get_task. It never says whether "stop" means cancel irreversibly, pause, or interrupt, and it does not explicitly contrast with any named sibling, 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to prefer this over antigravity_wait or antigravity_get_task, no preconditions, and no note about what happens if the task has already finished or the task_id is unknown. The agent must guess the appropriate context entirely.

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