Skip to main content
Glama

antigravity_task

Delegate a well-scoped coding task or second-opinion review to Google Antigravity via the official CLI; returns the agent's response, changed files, and a conversation ID for follow-ups.

Instructions

Delegate a task to Google Antigravity, running the official Antigravity CLI (agy --print) on this computer with the user's own Antigravity account. Good for a second opinion or review, a well-scoped implementation, or parallel work. Write a self-contained prompt: goal, relevant files, constraints, what to report back. Returns the agent's final response, the files it changed, and a conversation_id that continues the same conversation. Runs longer than wait_seconds return a job_id: poll it with antigravity_job.

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": {
      "prompt": "<prompt>"
    },
    "name": "antigravity_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute path of the workspace folder. Must be inside the allowed folders. Required for a new conversation; when resuming, defaults to the folder it ran in.
modelNoModel slug from antigravity_models (e.g. gemini-4-neon-high, claude-sonnet-5-5-medium), or "auto" (the default for a new conversation): the strongest model of the quota pool with the most quota left. When resuming, defaults to the model the conversation used.
accessNoread-only: plan mode, no changes (default). edit: may edit files, shell commands are denied. full: every tool auto-approved, including shell commands (use only when the user agreed).
effortNoReasoning effort. Omit for the model default.
preferNoWith model "auto": pick the strongest (default) or the fastest model of that pool.
promptYesComplete instructions for the Antigravity agent.
sandboxNoWith access full: run with agy's terminal restrictions (--sandbox). Default true.
add_dirsNoExtra folders agy may read (also checked against the allowed folders).
fallbackNoIf the model's quota pool runs out, re-run automatically once with a model from the other pool. Default true with model "auto", false otherwise.
isolationNoworktree: run in a new git worktree on branch agy/<id>, starting from HEAD, so the user's checkout and other runs are never touched. Review the result, then commit it on the branch or discard it with antigravity_job. Uncommitted changes in cwd are not copied. Default none.
wait_secondsNoSeconds to wait before returning a job_id (0-240, default 50). Ignored when the client runs the call as an MCP task.
conversation_idNoContinue an earlier Antigravity conversation.
timeout_secondsNoHard limit per agy run (agy --print-timeout). Default 1800.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.3.0
    • changedInput schema / properties / add_dirs / description
      Previous value: -"Extra folders to add to the workspace."New value: +"Extra folders agy may read (also checked against the allowed folders)."
    • changedInput schema / properties / cwd / description
      Previous value: -"Absolute path of the workspace folder. Required for a new conversation; when resuming, defaults to the folder it ran in."New value: +"Absolute path of the workspace folder. Must be inside the allowed folders. Required for a new conversation; when resuming, defaults to the folder it ran in."
    • addedInput schema / properties / fallback
      Added value: +{
      +  "description": "If the model's quota pool runs out, re-run automatically once with a model from the other pool. Default true with model \"auto\", false otherwise.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / isolation
      Added value: +{
      +  "description": "worktree: run in a new git worktree on branch agy/<id>, starting from HEAD, so the user's checkout and other runs are never touched. Review the result, then commit it on the branch or discard it with antigravity_job. Uncommitted changes in cwd are not copied. Default none.",
      +  "enum": [
      +    "none",
      +    "worktree"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / model / description
      Previous value: -"Model slug from antigravity_models (e.g. gemini-4-neon-high, claude-sonnet-5-5-medium). Omit for agy's default; when resuming, defaults to the model the conversation used."New value: +"Model slug from antigravity_models (e.g. gemini-4-neon-high, claude-sonnet-5-5-medium), or \"auto\" (the default for a new conversation): the strongest model of the quota pool with the most quota left. When resuming, defaults to the model the conversation used."
    • addedInput schema / properties / prefer
      Added value: +{
      +  "description": "With model \"auto\": pick the strongest (default) or the fastest model of that pool.",
      +  "enum": [
      +    "strong",
      +    "fast"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / timeout_seconds / description
      Previous value: -"Hard limit for the run (agy --print-timeout). Default 1800."New value: +"Hard limit per agy run (agy --print-timeout). Default 1800."
    • changedInput schema / properties / wait_seconds / description
      Previous value: -"Seconds to wait before returning a job_id (0-240, default 50)."New value: +"Seconds to wait before returning a job_id (0-240, default 50). Ignored when the client runs the call as an MCP task."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses that a real CLI runs locally under the user's own account, that the call can time out into a pollable `job_id` after `wait_seconds`, and exactly what comes back (final response, changed files, `conversation_id`). It does not mention auth prerequisites, quota/rate-limit behavior, or failure modes beyond the timeout path.

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 sentences, front-loaded with what the tool does, then fitness-for-purpose, then prompt guidance, then return/polling behavior. No sentence is filler and the most actionable guidance (self-contained prompt) is easy to find.

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 13-parameter, no-annotation, no-output-schema tool, the description covers the essential loop: call it, get a result or a `job_id`, poll, and resume with `conversation_id`. Return values are explained in the description since no output schema exists; the main shortfall is silence on permissions and quota behavior for a tool that executes shell-capable agents.

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 coverage is already 100%, so the baseline is 3, but the description adds genuine meaning: it tells the agent how to construct the required `prompt` (goal, relevant files, constraints, what to report back) and explains that `conversation_id` continues the same conversation. The remaining 12 parameters are left entirely to the schema.

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 — delegating a task to Google Antigravity via the `agy --print` CLI — and immediately scopes the use cases (second opinion, review, well-scoped implementation, parallel work). It is clearly distinguishable from `antigravity_job`, which it names as the polling mechanism rather than a competing delegation tool.

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 concrete positive guidance on when to reach for it and explicitly routes the agent to `antigravity_job` once a `job_id` is returned. It does not state when *not* to use it (e.g. versus `antigravity_council` or a lightweight local action), so a small inference gap remains.

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