Skip to main content
Glama

Run general-purpose Antigravity sub-agent task

general_task

Delegates a self-contained coding task to an editing sub-agent, blocking until finished and returning a report with status, usage and touched files. Supports resumed threads.

Instructions

Delegate coding task to agy sub-agent (accept-edits mode, may edit files). Prompt must be self-contained. Blocks until finished, returning report (status, response, usage, files_touched, transcript paths). Default effort: medium. background: true returns handle immediately (collect with watch_task). conversation_id resumes earlier thread. Headless runs auto-deny gated tools (in denied_actions; auto_approve skips).

Input Schema

NameRequiredDescriptionDefault
cwdNoTask cwd (defaults to server cwd).
agentNoAgent profile (see list_agents).
modelNoModel (e.g. gemini-3.8-flash). Tier-carrying id (e.g. gemini-3.8-flash-high) encodes tier and wins over effort; pairing with different effort is refused locally.
effortNoEffort: low|medium|high (bare models; tier-carrying ids win).
promptYesSelf-contained task prompt for sub-agent.
projectNoProject ID or name.
sandboxNoTerminal sandbox flag (--sandbox).
add_dirsNoExtra workspace dirs (--add-dir).
backgroundNoRun in background; collect with watch_task. Emits no progress notifications.
edit_scopeNoAllowed edit paths; out-of-scope edits flag in scope_violations.
timeout_msNoIdle timeout in ms (0..3600000; 0 disables; default 900000).
auto_approveNoPass --dangerously-skip-permissions to avoid auto-denying tools. Pair with sandbox.
conversation_idNoExisting conversation ID to resume.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv0.4.0
    • changedInput schema / properties / add_dirs / description
      Previous value: -"Extra directories to add to the task's workspace (--add-dir, repeatable)"New value: +"Extra workspace dirs (--add-dir)."
    • changedInput schema / properties / agent / description
      Previous value: -"Antigravity agent profile to use (see list_agents)"New value: +"Agent profile (see list_agents)."
    • changedInput schema / properties / auto_approve / description
      Previous value: -"Expert switch: pass --dangerously-skip-permissions so headless runs stop auto-denying gated tools. Pair it with sandbox when granting it. Allowed by this server."New value: +"Pass --dangerously-skip-permissions to avoid auto-denying tools. Pair with sandbox."
    • addedInput schema / properties / background
      Added value: +{
      +  "description": "Run in background; collect with watch_task. Emits no progress notifications.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Existing agy conversation ID to continue/resume instead of starting a new conversation. Returned by previous task results."New value: +"Existing conversation ID to resume."
    • changedInput schema / properties / cwd / description
      Previous value: -"Working directory for the delegated task (project the sub-agent operates on). Defaults to the server's cwd."New value: +"Task cwd (defaults to server cwd)."
    • changedInput schema / properties / edit_scope / description
      Previous value: -"Give 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."New value: +"Allowed edit paths; out-of-scope edits flag in scope_violations."
    • changedInput schema / properties / effort / description
      Previous value: -"Reasoning effort for the task"New value: +"Effort: low|medium|high (bare models; tier-carrying ids win)."
    • changedInput schema / properties / effort / enum
      Previous value: -[
      -  "low",
      -  "medium",
      -  "high",
      -  "xhigh",
      -  "max"
      -]New value: +[
      +  "low",
      +  "medium",
      +  "high"
      +]
    • changedInput schema / properties / model / description
      Previous value: -"Model for the task, e.g. gemini-3.8-flash-medium, claude-opus-5-5-high (see list_models)"New value: +"Model (e.g. gemini-3.8-flash). Tier-carrying id (e.g. gemini-3.8-flash-high) encodes tier and wins over effort; pairing with different effort is refused locally."
    • changedInput schema / properties / project / description
      Previous value: -"Antigravity project ID or name for the task"New value: +"Project ID or name."
    • changedInput schema / properties / prompt / description
      Previous value: -"Full, self-contained task description for the sub-agent. Include all needed context and file paths."New value: +"Self-contained task prompt for sub-agent."
    • addedInput schema / properties / prompt / pattern
      Added value: +"\\S"
    • changedInput schema / properties / sandbox / description
      Previous value: -"Run the task with Antigravity's terminal sandbox flag enabled (--sandbox)"New value: +"Terminal sandbox flag (--sandbox)."
    • changedInput schema / properties / timeout_ms / description
      Previous value: -"Idle 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)."New value: +"Idle timeout in ms (0..3600000; 0 disables; default 900000)."
  2. First observedv0.2.1

TDQS

A3.9/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does substantial work: it discloses that the call blocks until completion, enumerates the report fields returned, states the default effort level, explains background-handle behavior, and warns that headless runs auto-deny gated tools listed in denied_actions. It stops short of covering failure modes, cost/latency implications of long blocking runs, or concurrency limits.

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?

Purpose is front-loaded in the first clause and every subsequent sentence carries distinct operational information. The telegraphic, comma-spliced style packs a lot in but makes some clauses (headless auto-deny / auto_approve) harder to parse on first read.

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 delegation tool with no annotations and no output schema, the description is unusually complete: it explains blocking behavior, return payload fields, background retrieval via watch_task, thread resumption, permission denial in headless mode, and the edit-permission profile. Remaining gaps are sibling disambiguation against explore_task and guidance on timeout/sandbox interactions.

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 the schema already documents every parameter including background, conversation_id, auto_approve, and effort. The description adds only a couple of facts not in the schema, notably the medium default effort and the reinforced self-containment requirement for prompt, so baseline 3 is appropriate.

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?

States a specific verb and resource: delegate a coding task to the agy sub-agent, with the key qualifier that it runs in accept-edits mode and may edit files. That edit capability implicitly separates it from explore_task, but the sibling is never named, so the distinction is inferred rather than stated.

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: the prompt must be self-contained, background: true returns a handle to collect with watch_task, and conversation_id resumes an earlier thread. What it lacks is an explicit rule for choosing between general_task and explore_task (read-only exploration), which is the most likely sibling confusion.

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