Skip to main content
Glama

build_environment_config

Read-onlyIdempotent

Generate a remote sandbox environment configuration with specified sources, network controls, and optional reuse of an existing environment ID.

Instructions

Helper tool to generate a remote sandbox EnvironmentConfig dict.

Args: sources: List of {"type": "repository"|"gcs"|"inline", "source": "url-or-content", "target": "/workspace/path", "content": "..."}. "repository" (git URL) and "gcs" use "source"; "inline" uses "content" instead. "target" is required for all and must be a subdirectory (cannot mount to "/"). network_allowlist: List of {"domain": "api.example.com"|".example.com"|"", "transform": {"Authorization": "Bearer ..."}}. Ignored if network_disabled is True. network_disabled: Block all outbound network traffic (sets network="disabled"). environment_id: Reuse an existing environment's state instead of provisioning fresh.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourcesNo
environment_idNo
network_disabledNo
network_allowlistNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations declare readOnlyHint=true and idempotentHint=true, indicating no mutation and deterministic output. The description adds behavioral context: it generates a dict, and notes that 'network_allowlist' is ignored when 'network_disabled' is True. This goes beyond annotations but could include more side-effect details (none expected here).

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?

The description is concise and well-structured, using docstring-style parameter listings. Each sentence serves a purpose, with no redundancy or filler. The format is front-loaded with the core purpose, followed by clear bullet points.

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?

Given the tool has 4 parameters (with nested objects) and an output schema, the description is complete. It explains all input behaviors, dependencies (e.g., allowlist ignored if disabled), and special constraints (target must be subdirectory). The output schema handles return values, so the description need not cover them.

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?

The description provides detailed semantics for each parameter, far beyond the input schema. For 'sources', it explains the three types, the distinction between 'source' and 'content', and that 'target' must be a subdirectory. For 'network_allowlist', it describes 'domain' and 'transform' structure. For 'network_disabled' and 'environment_id', it clarifies their behavioral effects. With 0% schema description coverage, the description fully compensates.

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 clearly states the tool's purpose: 'Helper tool to generate a remote sandbox EnvironmentConfig dict.' This specifies the action (generate), the resource (EnvironmentConfig dict), and its context (remote sandbox). It is distinct from siblings like 'create_environment' which actually provisions environments, so differentiation is clear.

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

Usage Guidelines3/5

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

The description labels the tool as a 'helper' and explains what it does, but does not explicitly state when to use it vs. alternatives like 'create_environment' or 'build_mcp_server_tool_config'. Usage context is implied but not directly addressed, leaving the agent to infer from the tool name and sibling list.

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