Skip to main content
Glama

antigravity_job

Check, wait for, or cancel a background Antigravity job started by a task or council; jobs persist on disk, so status survives server restarts and new sessions.

Instructions

Check on (and optionally wait for, or cancel) a job started by antigravity_task or antigravity_council. Jobs are saved on disk, so this works after a server restart and from another session.

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": {
      "job_id": "<job_id>"
    },
    "name": "antigravity_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
cancelNoStop the job (for a council: every run in it).
job_idYesA job_id or council_id.
worktreeNoFor a finished job run with isolation worktree: commit its changes on its agy/<id> branch, or delete the worktree and branch.
wait_secondsNoWait up to this long for it to finish (0-240, default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • changedInput schema / properties / cancel / description
      Previous value: -"Stop the job."New value: +"Stop the job (for a council: every run in it)."
    • addedInput schema / properties / job_id / description
      Added value: +"A job_id or council_id."
    • addedInput schema / properties / worktree
      Added value: +{
      +  "description": "For a finished job run with isolation worktree: commit its changes on its agy/<id> branch, or delete the worktree and branch.",
      +  "enum": [
      +    "commit",
      +    "discard"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose a non-obvious trait: jobs are persisted on disk, so this survives restarts and cross-session use. It also implies blocking behavior via the optional wait. It stops short of saying whether a cancel is recoverable or what a completed job returns.

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?

Two sentences, no filler. The capability statement comes first and the persistence caveat second, so the most decision-relevant information is front-loaded.

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?

No output schema exists, yet the description never indicates what a check returns (status fields, results, error shape), which is the core question for a polling tool. Persistence, waiting, and cancellation semantics are covered, but the return side is left entirely to inference.

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 100%, so every parameter is already documented in structured form. The description adds a little meaning, notably that cancel on a council stops every run in it, but says nothing about the worktree commit/discard option beyond what the schema states. Baseline 3 applies.

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 ('Check on... a job') and enumerates the three supported actions: check, wait, cancel. It also anchors the resource to its producers ('started by antigravity_task or antigravity_council'), which separates it from the sibling listing tool antigravity_jobs.

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 clear context for when this applies: a job whose id came from antigravity_task or antigravity_council. It does not explicitly route the agent elsewhere for enumerating jobs (e.g. antigravity_jobs), so the when-not guidance is incomplete but the when guidance is solid.

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