Skip to main content
Glama

Run general-purpose Antigravity sub-agent task

general_task

Delegate a self-contained coding task to the Antigravity CLI as a blocking headless run, returning the final response, conversation ID, token usage, and git audit.

Instructions

Delegate a general-purpose coding task to the Antigravity (agy) CLI and block until the headless run exits (synchronous; the tool call IS the wait). Defaults: mode accept-edits, effort medium. The result carries the agent's final response, the resumable conversation_id, token usage, denied_actions, and the git-based files_touched/scope_violations audit when cwd is a git repo. Headless runs auto-DENY tool requests that would prompt instead of hanging (surfaced in denied_actions); permission to allow them is granted by the user via permissions.allow rules in their own Antigravity settings.json (e.g. command()), which this server never edits. File edits inside the task cwd never prompt; set edit_scope so out-of-scope changes are flagged in the audit. auto_approve is the expert full-auto switch (--dangerously-skip-permissions); pair it with sandbox when granting it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for the delegated task (project the sub-agent operates on). Defaults to the server's cwd.
agentNoAntigravity agent profile to use (see list_agents)
modelNoModel for the task, e.g. gemini-3.8-flash-medium, claude-opus-5-5-high (see list_models)
effortNoReasoning effort for the task
promptYesFull, self-contained task description for the sub-agent. Include all needed context and file paths.
projectNoAntigravity project ID or name for the task
sandboxNoRun the task with Antigravity's terminal sandbox flag enabled (--sandbox)
add_dirsNoExtra directories to add to the task's workspace (--add-dir, repeatable)
edit_scopeNoGive the sub-agent an edit boundary (files and directories relative to cwd, or absolute). Out-of-scope changes are surfaced in the result's files_touched/scope_violations audit; it is an audit-and-replay control, not a sandbox — the CLI writes files itself.
timeout_msNoIdle timeout for the run in ms (0..3600000; 0 disables the idle kill for this run). Resets on every stdout/stderr chunk from the child; kicks in after this much child silence and kills the child (SIGTERM, then SIGKILL after 5s). Default: 900000 (AGY_MCP_IDLE_TIMEOUT_MS).
auto_approveNoExpert switch: pass --dangerously-skip-permissions so headless runs stop auto-denying gated tools. Pair it with sandbox when granting it. Allowed by this server.
conversation_idNoExisting agy conversation ID to continue/resume instead of starting a new conversation. Returned by previous task results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses synchronous blocking, the auto-DENY behavior for gated tool requests and where denials surface (denied_actions), that this server never edits settings.json, that edit_scope is audit-and-replay rather than a sandbox, and that auto_approve is the --dangerously-skip-permissions switch. These are non-obvious side effects an agent must know before calling.

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?

Front-loaded with purpose and the synchronous contract, then defaults, then the permission/audit caveats. Dense with little waste, though the auto_approve and sandbox guidance is partly restated and the single long paragraph mixes return-value description with operational warnings.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 the description compensates by enumerating what the result carries (final response, conversation_id, token usage, denied_actions, files_touched/scope_violations audit when cwd is a git repo). Combined with the timeout/idle-kill semantics in the schema, an agent has enough to call and interpret this 12-parameter tool correctly.

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 100%, so the baseline is 3, but the description adds real meaning beyond the schema for edit_scope ('audit-and-replay control, not a sandbox — the CLI writes files itself') and auto_approve ('expert full-auto switch ... pair it with sandbox'). It also states defaults (mode accept-edits, effort medium) that the schema does not.

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?

Specific verb + resource: 'Delegate a general-purpose coding task to the Antigravity (agy) CLI and block until the headless run exits.' The parenthetical '(synchronous; the tool call IS the wait)' immediately separates it from async siblings like watch_task, so an agent can route without opening schemas.

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 operational context: headless runs auto-deny prompting tools, permission must be pre-granted by the user via permissions.allow, file edits inside cwd never prompt, and auto_approve should be paired with sandbox. However, it never names the sibling alternative (explore_task) or states when this blocking tool is preferred over the watch/explore pattern, leaving that inference to the agent.

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