Skip to main content
Glama
jinchliu

tagmanager-mcp

by jinchliu

create_tag

Create a tag in a Google Tag Manager workspace draft. Provide account, container, workspace IDs and tag body; returns the new tag's ID.

Instructions

Creates a tag in the workspace draft.

Changes stay in the workspace until a version is published; nothing goes live. Returns the created tag including its tagId.

Args: account_id: Numeric account ID or full resource path. container_id: Numeric container ID or full resource path. workspace_id: Numeric workspace ID; find it via list_workspaces. tag: Tag resource body. Requires 'name' and 'type'; most types also need 'parameter' (list of {'type', 'key', 'value'} dicts) and 'firingTriggerId' (list of trigger ID strings). Minimal example: {'name': 'Hello', 'type': 'html', 'parameter': [{'type': 'template', 'key': 'html', 'value': '...'}], 'firingTriggerId': ['2147479553']} (2147479553 is the built-in All Pages trigger; built-in triggers do not appear in list_triggers).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagYes
account_idYes
container_idYes
workspace_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations indicate a write operation (readOnlyHint=false) and non-destructive (destructiveHint=false). The description adds transparency by explaining the draft behavior, that changes stay local until publication, and that it returns the created tag with tagId. No contradictions.

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 well-structured with a clear purpose statement, a behavior paragraph, and an args section. It is slightly verbose but each sentence adds value. Could be more concise, but remains effective.

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?

Given the complexity (4 params, nested objects, no schema description) and the existence of an output schema, the description covers key aspects: draft lifecycle, parameter explanations, return value, and a note about built-in triggers. Missing are potential errors or permission requirements, but overall complete.

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?

With 0% schema description coverage, the description fully compensates by explaining all four parameters. It gives specific instructions for workspace_id (find via list_workspaces) and details the tag resource body structure, including required fields and a minimal example.

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 'Creates a tag in the workspace draft,' specifying the verb, resource, and scope. It distinguishes from sibling tools like create_trigger and create_variable by emphasizing the draft lifecycle and that nothing goes live until publication.

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?

The description provides context on when to use (creating tags in draft) but lacks explicit when-not-to-use or alternatives. It implies the tool is for initial creation, not updates, but does not mention update_tag or deletion as alternatives.

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/jinchliu/tagmanager-mcp'

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