Skip to main content
Glama
rgellis

Google Tag Manager MCP Server

by rgellis

Create Template

create_template

Create a custom template in a Google Tag Manager workspace by providing account, container, workspace IDs and the template definition in sandboxed JavaScript format.

Instructions

Create a custom template in a workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateYesCustomTemplate resource, e.g. {"name": "My pixel", "templateData": "___INFO___\n..."}. templateData is the full template definition in Tag Manager's sandboxed JavaScript format, including its ___INFO___, ___TEMPLATE_PARAMETERS___ and ___SANDBOXED_JS_FOR_WEB_TEMPLATE___ sections.
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?

No annotations are provided, so the description carries the full behavioral burden. It only states the basic create action and workspace, omitting side effects, permission requirements, duplicate/overwrite behavior, and the relationship of account_id and container_id to the workspace.

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 sentence with no filler and front-loads the action and resource. It is efficient, though its brevity means it contributes little beyond the tool name.

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?

Combined with a complete input schema and an output schema, the definition is workable for basic invocation. However, it lacks usage routing and behavioral caveats, which is a noticeable gap for a mutation tool that creates complex sandboxed template definitions.

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%: all four parameters have descriptions, including a detailed template object format with sandboxed JavaScript sections. The description adds no parameter-level detail, so the baseline of 3 applies.

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 action (create), a specific resource (custom template), and a scope (workspace). This distinguishes it from sibling mutation tools like update_template and delete_template, though it does not explicitly contrast it with import_template_from_gallery.

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?

There is no guidance about when to use this tool versus alternatives such as import_template_from_gallery or update_template. No prerequisites like workspace existence or permissions are mentioned; the only context is the workspace scope in the one-line 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