Skip to main content
Glama

create_interaction

Create a new agent interaction by providing a task prompt, optional tools, images, and configuration for autonomous code execution or browsing in a sandbox environment.

Instructions

Create a new Antigravity agent interaction.

Args: prompt: Task instruction or prompt for the agent. agent: Agent identifier (default: antigravity-preview-05-2026). model: Model name for agent_config (e.g. gemini-3.6-flash, gemini-3.5-flash-lite). environment: Sandbox environment mode ('remote' or existing environment_id). tools: List of custom tool dicts (code_execution, google_search, url_context, mcp_server, function). images: Optional list of base64 images, e.g. [{"data": "", "mime_type": "image/png"}]. max_total_tokens: Optional token budget cap for the interaction. background: Run asynchronously; poll with get_interaction_status. Forces store=True. system_instruction: Optional behavior/persona override for this interaction. stream: Stream the response via the SDK (ignored by the REST fallback path).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentNoantigravity-preview-05-2026
modelNogemini-3.6-flash
toolsNo
imagesNo
promptYes
streamNo
backgroundNo
environmentNoremote
max_total_tokensNo
system_instructionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations provided, so description carries full burden. It mentions background mode and polling with get_interaction_status, but does not disclose side effects (e.g., state changes, resource consumption), required permissions, idempotency, or failure behavior. The description is incomplete for a creation tool with 10 parameters.

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?

Well-structured with clear bulleted list of arguments. Front-loaded with purpose. Slightly verbose in some parameter descriptions (e.g., images example), but still efficient for the number of parameters. Could trim redundant default mentions.

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?

Covers all 10 parameters and notes async behavior with background. Does not explain output shape (though output schema exists) or error conditions. For a tool with 1 required param and nested objects, the description is fairly complete but could include more on environment prerequisites and stream vs background tradeoffs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description thoroughly explains each parameter with examples (e.g., images format, agent default, environment options). This adds crucial meaning beyond raw schema types, fully compensating for the schema's lack of natural language descriptions.

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?

The description starts with 'Create a new Antigravity agent interaction,' a clear verb+resource pairing. It distinguishes from sibling tools like get_interaction_status, cancel_interaction, and continue_interaction by focusing on creation. The detailed parameter list reinforces the specific purpose.

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs alternatives (e.g., continue_interaction, build_environment_config). No mention of prerequisites, when to use background vs stream, or the need for a pre-existing environment. The description lists parameters but provides no strategic usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bgembalczyk/agent-antigravity-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server