Skip to main content
Glama
gtm-mcp-server

gtm-mcp-server

by KUHL-HQ

gtm_tag

Create, retrieve, list, update, remove, or revert Google Tag Manager tags within an account, container, and workspace; list results return up to 20 per page.

Instructions

Performs all GTM tag operations: create, get, list, update, remove, revert. The 'list' action returns up to 20 items per page.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>",
      "accountId": "<accountId>",
      "containerId": "<containerId>",
      "workspaceId": "<workspaceId>"
    },
    "name": "gtm_tag"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination (starts from 1). Each page contains up to itemsPerPage items.
tagIdNoThe unique ID of the GTM tag. Required for 'get', 'update', 'remove', and 'revert' actions.
actionYesThe GTM tag operation to perform. Must be one of: 'create', 'get', 'list', 'update', 'remove', 'revert'.
accountIdYesThe unique ID of the GTM Account containing the tag.
containerIdYesThe unique ID of the GTM Container containing the tag.
fingerprintNoThe fingerprint for optimistic concurrency control. Required for 'update' and 'revert' actions.
workspaceIdYesThe unique ID of the GTM Workspace containing the tag.
itemsPerPageNoNumber of items to return per page (1-20). Default: 20. Use lower values if experiencing response issues.
createOrUpdateConfigNoConfiguration for 'create' and 'update' actions. All fields correspond to the GTM tag resource, except IDs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description should disclose behavioral constraints. It only mentions that the 'list' action returns up to 20 items per page, while omitting that remove is destructive, update/revert require fingerprints, and other actions have action-specific requirements.

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 two front-loaded sentences with no filler. The action list is stated first, followed by the only notable pagination detail.

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?

This is a complex multi-action tool with nine parameters, nested configuration, and no output schema. The description is too sparse to explain action-specific behavior or the nested createOrUpdateConfig usage, leaving nearly all semantics to the schema.

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 parameter meaning is already well documented. The description's note about 20 items per page duplicates the itemsPerPage schema constraint and adds no new parameter guidance.

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 the resource and full action set: "Performs all GTM tag operations: create, get, list, update, remove, revert." This clearly distinguishes it as the GTM tag tool among GTM siblings, though it does not explicitly route between sibling tools.

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

Usage Guidelines3/5

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

Usage is implied by the phrase "all GTM tag operations" and the action list, but the description gives no criteria for choosing get versus list, update versus revert, or when to use this tool instead of related GTM tools.

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