Skip to main content
Glama
rgellis

Google Tag Manager MCP Server

by rgellis

Create Environment

create_environment

Create an environment in a Google Tag Manager container to isolate staging or production configurations for controlled testing and deployment.

Instructions

Create an environment in a container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYesNumeric Tag Manager account ID.
environmentYesEnvironment resource. Requires name, e.g. {"name": "Staging", "description": "Pre-release checks", "url": "https://staging.example.com", "enableDebug": true}.
container_idYesNumeric container ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries full responsibility. It doesn't disclose that creating an environment likely mutates resources, nor does it mention any prerequisites (like existing container), authentication requirements, or side effects. The description is too terse to inform the agent of what to expect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It's a single sentence, which is concise, but it lacks substantive content. The brevity is not harmful, but the sentence could be more informative without much extra length (e.g., 'Creates a new Google Tag Manager environment within a specified container.'). It's not front-loaded with any critical context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that this is a create operation, the description should explain the purpose (e.g., for previewing changes), prerequisites (container must exist), and any constraints (e.g., environment name uniqueness). The output schema is present, but the description lacks guidance on the operation's significance in the broader workflow. Multi-line schema example helps, but still incomplete.

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

Parameters3/5

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

Schema description coverage is 100%, so the input schema already documents all parameters including the environment object's example. The description adds no additional parameter meaning; it's a simple 'Create' verb that aligns with the schema. Baseline 3 is appropriate since the schema carries the load.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the verb 'create' and resource 'environment', but is too generic — 'Create an environment in a container' doesn't specify that this is a Google Tag Manager environment or how it differs from sibling tools like 'create_workspace' or 'create_container'. The purpose is clear at a basic level but lacks specificity.

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 versus alternatives. The description does not mention that environments are typically used for version testing, nor does it clarify that this is for creating a new environment rather than updating or listing them. An agent might incorrectly consider it for similar create actions.

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