Skip to main content
Glama
A1-x-Tech

Google Tag Manager MCP

Create a tag, trigger or variable

create_entity

Create a tag, trigger, or variable in a Google Tag Manager workspace by providing resource JSON with name and type, plus optional parameters and firing trigger IDs.

Instructions

Creates a tag, trigger or variable in a workspace. body is the resource JSON: minimally { name, type } plus type-specific parameter entries; tags also take firingTriggerId (array of trigger id strings). Example tag body: { "name": "GA4 event", "type": "gaawe", "parameter": [...], "firingTriggerId": ["12"] }. Returns the created resource with its server-assigned id and fingerprint. Requires the tagmanager.edit.containers scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesThe resource JSON to create (name, type, parameter, and for tags firingTriggerId).
account_idYesGTM account id (string).
entity_typeYesWhich collection to create in.
container_idYesContainer id (string).
workspace_idYesWorkspace id (string).
Behavior4/5

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

The description adds behavioral context beyond annotations: it discloses that the tool returns the created resource with server-assigned id and fingerprint, and requires the tagmanager.edit.containers scope. Annotations already indicate non-read-only and non-destructive, so no contradiction.

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, front-loaded with purpose, then systematically explains the body parameter with an example, and ends with return value and auth scope. Every sentence carries needed information with no filler.

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?

Despite no output schema, the description covers return value, required scope, and complex nested body structure. It adequately addresses the tool's complexity and pairs well with annotations and sibling context, making it fully complete for the agent to use.

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 coverage is 100% for basic params, but the description significantly augments the 'body' parameter by explaining the minimum structure ({ name, type }), type-specific entries, and the firingTriggerId array, with an example. This adds substantial meaning beyond the schema's generic object description.

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 creates a tag, trigger, or variable in a workspace, using a specific verb and resource. It distinguishes from siblings like update_entity and delete_entity by focusing on creation of these entity types, and the title reinforces this.

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

Usage Guidelines4/5

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

The description implies when to use this tool (to create tags/triggers/variables) and provides a concrete example of the body structure. It does not explicitly name alternatives or exclusions, but the context of sibling tools makes the usage clear.

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/A1-x-Tech/mcp-google-tagmanager'

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