Skip to main content
Glama
zamatewi-cell

Codex Antigravity Subagent MCP

委派任务给 Gemini 子代理

delegate_to_gemini
Destructive

Delegates coding tasks to Gemini via the Antigravity CLI. Accepts a prompt plus optional model, mode, project, session, and timeout parameters for configurable execution.

Instructions

通过 Antigravity CLI 调用 Gemini,默认模型为 gemini-3.8-flash-high。保留 prompt 并补充绝对工作目录,启用斜杠命令展开,可直接调用 /teamwork-preview <任务> 等系统命令。调用会等待结果;预计超过数分钟的 Teamwork 任务请使用 start_gemini_task。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoAntigravity 执行模式。plan 只规划;accept-edits 允许提出和执行修改。
agentNo可选的 Antigravity agent 名称。
modelNoAntigravity 模型名;默认 gemini-3.8-flash-high。
effortNo推理强度。
promptYes交给 Gemini 的完整提示词。保留开头的系统斜杠指令,并在末尾补充绝对工作目录,例如:/teamwork-preview <完整任务>。
projectNo可选的 Antigravity project ID 或名称。
new_projectNo为本次调用新建 Antigravity project。
session_modeNoAGY 运行轨道模式:print 为常规单次委托执行(自动化/批量),stream 为交互式流传输长会话(支持多轮人机交互)。print
add_directoriesNo额外加入 AGY 工作区的目录。
continue_latestNo继续最近一次 Antigravity 会话。
conversation_idNo继续指定 Antigravity 会话;值来自上一次结果的 conversation_id。
permission_modeNoAntigravity 权限模式;默认 auto-approve(auto-approve 确保在无头 headless 模式下工具调用免人工交互确认)。auto-approve
timeout_secondsNo单次 AGY 运行超时,30 到 21600 秒。Teamwork 长任务应提高该值或使用后台任务工具。
working_directoryNoGemini 工作目录的绝对路径。涉及当前仓库时必须传入当前 Codex 工作目录。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.3
    • addedInput schema / properties / session_mode
      Added value: +{
      +  "default": "print",
      +  "description": "AGY 运行轨道模式:print 为常规单次委托执行(自动化/批量),stream 为交互式流传输长会话(支持多轮人机交互)。",
      +  "enum": [
      +    "print",
      +    "stream"
      +  ],
      +  "type": "string"
      +}
  2. First observedv1.3.0

TDQS

A4.6/5.0
Behavior4/5

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

注释已声明 destructiveHint=true,描述没有矛盾。描述额外揭示了调用会等待结果、会保留并补充 prompt、启用斜杠命令展开等行为,这些超出了注释本身能提供的信息。只是没有明确说明可能产生的破坏性副作用,但已有 destructiveHint 覆盖。

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?

描述仅三句话,第一句直接说明工具作用和默认模型,第二句说明 prompt 处理和斜杠命令,第三句给出等待语义和与兄弟工具的区分。信息密度高且没有冗余。

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?

对于一个有 14 个参数、无输出 schema 的复杂工具,描述涵盖了核心调用语义、参数补充规则、超时建议和备选工具。虽然没有明确返回值,但 schema 也完全没有输出定义。基本足够,但可以再补充说明返回结果的结构。

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 覆盖率为 100%,每个参数都有描述。描述对 prompt 参数特别补充了'保留开头的系统斜杠指令并在末尾补充绝对工作目录'的行为,并给出具体示例,这对 agent 构造正确调用至关重要。working_directory 和 permission_mode 的描述也提供了 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?

描述明确说明通过 Antigravity CLI 调用 Gemini,并指出默认模型,还点名了与 start_gemini_task 的区别(等待结果 vs 后台任务)。资源、动作和范围都清晰,能与同级工具区分。

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?

描述明确指出预计超过数分钟的 Teamwork 任务应使用 start_gemini_task,timeout_seconds 参数也补充了长任务应提高值或使用后台任务工具。这提供了明确的替代工具路由和适用场景。

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