Skip to main content
Glama

agy_task

Delegate a coding task to Antigravity in an isolated git worktree and sandbox, then review the returned diff, denied actions, and response before committing or cleaning up.

Instructions

Delegate a coding task to Antigravity (agy). Creates a new git worktree on branch agy/<task_id> from base, runs agy there inside a bubblewrap sandbox with file edits allowed and terminal commands denied, and returns agy's response, denied actions and the diff (truncated beyond AGY_MCP_MAX_DIFF_CHARS; embedded repositories are listed, not diffed). agy never commits; review the diff, run checks yourself, then commit and merge the branch or discard it with agy_cleanup.

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": {
      "repo": "<repo>",
      "task": "<task>"
    },
    "name": "agy_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoCommit-ish to branch from. Defaults to HEAD.
repoYesAbsolute path of the git repository (must be inside AGY_MCP_ALLOWED_ROOTS).
taskYesSelf-contained brief: goal, files involved, constraints, acceptance criteria.
modelNoagy model id, e.g. gemini-4-neon-medium. Run `agy models` to list them. Omit for the configured default.
effortNoReasoning effort for this run.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/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: it discloses the sandbox mechanism, that file edits are allowed but terminal commands are denied, that agy never commits, that the diff is truncated beyond AGY_MCP_MAX_DIFF_CHARS, and that embedded repositories are listed rather than diffed. This is exactly the behavioral context an agent needs before invoking a mutation-capable delegation tool.

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 dense sentences, front-loaded with the core action and followed by operational constraints and the post-run workflow. Every clause carries distinct information, with no restatement of the tool name or filler wording.

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 multi-step delegation tool with no output schema, the description covers the return payload (agy's response, denied actions, truncated diff) and the full lifecycle. The only minor gap is that it does not detail what happens to the worktree after a successful run, though agy_cleanup is referenced as the discard path.

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 all five parameters are already documented in the schema, and this establishes a baseline of 3. The description adds only marginal meaning, clarifying that base is the commit-ish the branch is created from and implying task_id drives the branch name, but does not elaborate on model or effort choices beyond what the schema states.

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 ("Delegate a coding task to Antigravity") and then specifies the exact mechanism: new git worktree on branch agy/<task_id> from base, run in a bubblewrap sandbox. This clearly separates it from agy_cleanup (discard) and agy_follow_up (continue), which are named or implied.

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?

Provides a clear workflow context, including the critical post-run step: review the diff, run checks yourself, then commit and merge the branch or discard it with agy_cleanup. It does not explicitly say when to prefer agy_follow_up over a fresh delegation, but the surrounding guidance is concrete and actionable.

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

Deploy Server

Other Tools