Skip to content

Antigravity (ACP): flatten anyOf in advertised MCP tool schemas so all tools register natively #485

Backlog

Description

@shuv1337

Tracking issue. Not started; needs a go before any work.

Problem

On the Antigravity provider (ACP), some T3 MCP tools are not registered natively. As of the upstream sync in #482 (cd128e7774), six tools still advertise a schema with anyOf after apps/server/src/mcp/advertisedJsonSchema.ts has simplified it:

  • delegate_task
  • create_threads
  • schedule_task
  • t3_thread_launch
  • t3_thread_send_attachments
  • t3_attachment_prepare_upload

Upstream did not change advertisedJsonSchema.ts in the synced range (de0466fd80..cd128e7774); it only hardened the fallback path. So the sync did not fix this.

What is known and what is not

  • Known: the six tool names above, from the merged tree's advertised tool list.
  • Not verified: that anyOf is the only reason these tools fail native registration on Antigravity, and which of the six actually fail in a live Antigravity session.

Possible direction

advertisedJsonSchema.ts already merges tagged unions of objects into one object and unwraps single-branch anyOf. Extend it so no advertised input schema keeps an anyOf (for example merge the remaining unions into one permissive object, with the server still decoding against the strict schema), then confirm in an Antigravity session that all six register.

Any change here alters model-facing tool schemas: read evals/README.md first, and check the agent context budget.

Check upstream before starting; prefer its fix if one lands.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions