Skip to main content
Glama
rgellis

Google Tag Manager MCP Server

by rgellis

Create Tag

create_tag

Create a tag in a Google Tag Manager workspace using account, container, workspace IDs and a tag resource with name and type.

Instructions

Create a tag in a workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagYesTag resource. Requires name and type, e.g. {"name": "GA4 - purchase", "type": "gaawe", "parameter": [{"type": "template", "key": "eventName", "value": "purchase"}], "firingTriggerId": ["12"]}. Tag types are Tag Manager's internal codes -- "gaawe" is a GA4 event, "googtag" a Google tag, "html" a custom HTML tag. Copy the shape from an existing tag via get_tag when unsure.
account_idYesNumeric Tag Manager account ID.
container_idYesNumeric container ID.
workspace_idYesNumeric workspace ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries full responsibility for behavioral disclosure, but it only repeats the basic action. It does not mention that this mutates a workspace, that invalid tag types may be rejected, that the tag is associated with a container/workspace, or any possible side effects or failure modes. It is not misleading, but it is far too sparse.

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?

The description is a single, front-loaded sentence with no filler. It effectively communicates the core action in minimal words narr. However, it borders on tautology with the tool name, and the added 'in a workspace' is the only structural differentiation, making it slightly too sparse.

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

Completeness3/5

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

The rich schema description for the 'tag' parameter and the full parameter coverage compensate for many gaps, and the output schema likely covers return values. Still, the tool description omits usage context, prerequirements, and behavioral side effects. Given the absence of annotations, this is a minimally viable definition but not a complete one.

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 baseline is 3 even without parameter explanations in the tool description. The tag parameter's description adds substantial meaning with a full example, required fields, and an explanation of internal type codes. The tool description itself adds no parameter semantics, so it does not exceed the baseline.

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

Purpose4/5

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

The description states a clear verb and resource: 'Create a tag in a workspace.' It identifies the object type (tag) and scope (workspace), which distinguishes it from sibling operations like create_trigger or create_variable. However, it does not explicitly differentiate itself from other tag-related operations such as update_tag or get_tag.

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?

The description provides no guidance on when to use this tool versus alternatives. There is no mention of prerequisites, such as needing an existing workspace/container, or conditions that would make create_tag preferable to update_tag. The only indirect hint is the parameter-level suggestion to copy shape from get_tag, but that is buried in the schema, not the tool description.

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