Skip to main content
Glama
google-data-mcp

google-data-mcp

by seliem-attia

GTM: Import template from the community gallery

gtm_import_gallery_template

Imports a Google Tag Manager community gallery tag or variable template into a workspace, enabling vendor pixels or consent banners after acknowledging template permissions.

Instructions

Imports a tag or variable template from the GTM community gallery into the workspace (e.g. consent banners like Cookiebot, usercentrics or vendor pixels). galleryOwner/galleryRepository = GitHub owner and repo of the template (shown on the gallery page at tagmanager.google.com/gallery). acknowledgePermissions=true confirms the template's permissions (loading scripts, setting cookies …); review them first.

Input Schema

NameRequiredDescriptionDefault
accountIdYesGTM accountId (from gtm_list_accounts)
galleryShaNoSpecific version (commit SHA); default latest
containerIdYesGTM containerId, numeric
workspaceIdYesWorkspace ID (from gtm_list_workspaces / gtm_create_workspace)
galleryOwnerYesGitHub owner of the gallery template
galleryRepositoryYesGitHub repository of the gallery template
acknowledgePermissionsYesMust be true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, so the description's extra value is in explaining that the operation pulls external GitHub-hosted code into the workspace and that acknowledgePermissions confirms real capabilities (loading scripts, setting cookies). That is meaningful behavioral context beyond the annotations. It does not mention whether the imported entity lands in a draft workspace requiring a subsequent publish/version step, which is the main remaining gap.

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?

Three sentences, front-loaded with the action and resource, followed by parameter guidance in priority order. The parenthetical example lists are slightly long but each earns its place by aiding template discovery. No filler or restatement of the title.

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

Completeness4/5

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

For a mutating, open-world import with no output schema, the description covers the essential concerns: where template coordinates come from, the mandatory permission acknowledgement, and a safety prompt to review permissions first. It is nearly complete; the missing piece is what happens on success (a new draft entity in the workspace, requiring validation/publish) and behavior when the template is already installed.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: it explains that galleryOwner/galleryRepository correspond to the GitHub owner and repo shown on the gallery page at tagmanager.google.com/gallery, telling the agent where to source these values. It also expands acknowledgePermissions beyond the schema's terse 'Must be true' by explaining what is being acknowledged. gallerySha and the GTM ID parameters get no added meaning, but the schema already covers them.

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?

States a specific verb and resource ('Imports a tag or variable template from the GTM community gallery into the workspace') and anchors it with concrete examples (consent banners like Cookiebot, usercentrics, vendor pixels). No sibling tool in the list performs gallery import, so an agent can identify this operation unambiguously from the name plus description.

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?

Gives a clear operating context: use it to pull a community template into a specific workspace, and it names the prerequisite that permissions should be reviewed before setting acknowledgePermissions=true. There is no explicit when-not-to-use guidance or comparison to an alternative path (e.g. building the tag manually via gtm_save_entity), so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.