Skip to main content
Glama
samarthanalytics-sj

Samarth GTM MCP Server

Official

triggers_create

Create a Google Tag Manager trigger by specifying its type, name, conditions, and parameters. Confirmation required before execution.

Instructions

[WRITE] Create a GTM trigger. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTrigger name.
typeYesTrigger type (e.g. "click", "pageview", "customEvent", "domReady", "windowLoaded", "historyChange", "jsError", "scrollDepth", "elementVisibility", "timer", "youTubeVideo", "formSubmission", "linkClick").
notesNo
filterNoConditions that must be met for the trigger to fire ("fires on SOME …").
confirmYes
accountIdYes
eventNameNoCustom event name (for customEvent type).
parameterNoTrigger settings as a parameter list — e.g. a YouTube Video trigger's captureStart/progressThresholdsPercent, a timer's interval/limit, scroll thresholds, element-visibility selector.
containerIdYes
waitForTagsNoForm/link trigger: a single boolean Parameter {type:"boolean", value:"true|false"} (no key).
workspaceIdYes
parentFolderIdNo
autoEventFilterNoConditions for auto-event triggers (legacy; most scopes use `filter`).
checkValidationNoForm/link trigger: a single boolean Parameter (no key).
customEventFilterNoUsed for custom event triggers.
waitForTagsTimeoutNoForm/link trigger: a single template Parameter with the timeout ms.
Behavior2/5

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

The description indicates a write operation via '[WRITE]' and mentions prerequisites, but fails to disclose what happens upon creation (e.g., returns the created trigger object, just a success response), potential side effects, or any destructive behavior. With no annotations, the description should provide more behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very short (one sentence plus a requirement note) and front-loaded with '[WRITE]'. While concise, it lacks substantive explanation; it could be more informative without becoming verbose.

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?

For a write tool with 16 parameters, nested structures, and no output schema, the description is severely incomplete. It does not explain trigger concepts, how to construct the parameter objects, or typical usage patterns. Agents would struggle to invoke this tool correctly without additional context.

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

Parameters2/5

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

Schema coverage is 63%, meaning many parameters have descriptions in the schema itself. However, the tool description adds no additional explanation about parameters, their relationships, or usage patterns. For a complex tool with 16 parameters including nested objects, this is insufficient.

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 clearly states 'Create a GTM trigger' with a specific verb and resource. However, it does not differentiate this from other creation tools like tags_create or variables_create, leaving ambiguity about when to use this tool specifically.

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 mentions required environment variables (GTM_MCP_ENABLE_WRITES=true, confirm=true) but provides no guidance on when to use this tool versus alternatives (e.g., triggers_update) or under what circumstances. No context on prerequisites or comparison with sibling tools.

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/samarthanalytics-sj/samarth-analytics-mcp'

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