Skip to main content
Glama
Antigravity Sub-Agent MCP Server

Antigravity Sub-Agent MCP Server

by khanhbkqt

submit_agent

Spawn an autonomous agent to execute complex coding tasks in Antigravity IDE, returning a task ID instantly for parallel, non-blocking delegation.

Instructions

Spawn an autonomous agent in Antigravity IDE. Returns a taskId INSTANTLY (does NOT wait for completion).

The agent runs as a new Cascade conversation with full codebase access — it can read files, grep, run terminal commands, and edit files. It operates fully autonomously without asking questions. Each agent consumes significant resources (new conversation + model tokens), so only delegate tasks that provide real value.

ALWAYS use this 2-step pattern: Step 1: Call submit_agent N times (each returns a taskId in ~1 second) Step 2: Call get_agent_results([taskId1, taskId2, ...]) to wait for ALL results at once

All N agents run in parallel. Write self-contained prompts — the agent has ZERO prior context.

WHEN TO USE (high-value tasks): ✅ Implement a scoped feature or bug fix (write code, run tests) ✅ Research/summarize a module, architecture, or large codebase area ✅ Run a build/test suite and report results ✅ Generate boilerplate, migrations, or repetitive code ✅ Perform multi-step analysis that requires reasoning

WHEN NOT TO USE (do it yourself — faster & cheaper): ❌ Read or view files ❌ Simple grep/search operations ❌ Single-file edits that take < 30 seconds ❌ Tasks that just collect information without transforming it

Models: gemini-high (default), gemini-low, gemini-flash, claude-opus, claude-sonnet, gpt-120b.

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

Input Schema

NameRequiredDescriptionDefault
taskYesClear task description for the sub-agent to execute autonomously
modelNoModel to use. Aliases: gemini-high (default), gemini-low, gemini-flash, claude-opus, claude-sonnet, gpt-120b.
timeoutNoMax wait time in seconds (default: 600)
taskNameNoShort task name (3-5 words) for the conversation title
workspaceNoWorkspace root path
maxRepliesNoMax auto-replies if agent asks questions (default: 3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/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 that the agent runs in a new Cascade conversation with file read/edit and terminal access, acts without asking questions, runs in parallel, consumes significant tokens, and needs a self-contained prompt because it has zero prior context. The only mild gap is no explicit warning about the irreversibility of autonomous file edits, but the cost and autonomy profile is well covered.

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 the return contract, then the 2-step pattern, then the use/avoid lists — a sensible ordering for a batch-spawning tool. It is long but largely earns its length; the model alias list duplicates the schema and is the one clearly redundant block.

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?

For a tool with six parameters, no output schema, and no annotations, the description supplies everything needed to call it correctly: the return value (taskId), that it is non-blocking, the required follow-up call to get_agent_results, parallel execution semantics, and prompt-authoring constraints. Nothing essential is missing.

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 already 100%, so the baseline is 3; the description adds real meaning on top by specifying that the 'task' parameter must be a self-contained prompt with no shared context, which is a prerequisite for correct invocation. It restates the model aliases already enumerated in the schema, and says nothing about timeout or maxReplies semantics, keeping it below a 5.

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 ('Spawn an autonomous agent in Antigravity IDE') and immediately clarifies the key semantic distinction: it returns a taskId instantly and does NOT wait for completion. That contrast makes it trivially distinguishable from the sibling get_agent_results without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit positive and negative guidance: a WHEN TO USE list (feature implementation, research, build/test suites, boilerplate, multi-step analysis) and a WHEN NOT TO USE list (file reads, grep, quick single-file edits, pure information gathering). It also prescribes the mandatory 2-step pattern with get_agent_results so the agent knows the follow-up call.

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