Skip to main content
Glama

Set up a conversion in Tag Manager

gtm_setup_conversion

One step: create the trigger (thank-you page, dataLayer event or click) and the conversion tag for Google Ads, GA4, Meta, TikTok or Snap in the workspace DRAFT. Adds a Conversion Linker for Google Ads if missing. Nothing goes live until gtm_publish.

Input Schema

NameRequiredDescriptionDefault
nameYesConversion name, e.g. Purchase or Lead.
whenYes
matchYesURL fragment, event name, click text or form ID.
folderNoClient folder name.
dry_runNo
currencyNoCurrency code or {{Variable}}.
languageNoLanguage of the card (ar for Arabic, en for English).
pixel_idNo
platformYes
containerNoContainer name, public ID (GTM-XXXX) or container ID. Required when several containers are enabled.
workspaceNoWorkspace name or ID. Defaults to 'Default Workspace'.
event_nameNoGA4 event name (e.g. purchase, generate_lead).
pixel_eventNoMeta: Purchase, Lead, AddToCart… TikTok: CompletePayment, SubmitForm… Snap: PURCHASE, SIGN_UP…
conversion_idNoGoogle Ads conversion ID (digits, from AW-XXXXXXX).
measurement_idNoGA4 measurement ID (G-XXXX).
transaction_idNoOrder ID or {{Variable}} (deduplication).
conversion_labelNo
conversion_valueNoNumber or {{Variable}}.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the description adds real value by disclosing that writes land in the workspace DRAFT, that publishing is required separately, and that a Conversion Linker is auto-created for Google Ads if missing — an important implicit side effect. It still does not say what happens on name collisions or whether partial failures roll back, so not a top score.

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?

Three short sentences, zero filler, with the core action and platform scope front-loaded and the publish caveat trailing where it belongs. Every sentence carries distinct information.

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?

For an 18-parameter mutation tool with platform-dependent requirements and no output schema, the description covers the workflow and one side effect but leaves the platform-to-parameter mapping and failure behavior unaddressed. Adequate to start, insufficient to invoke confidently across all five platforms.

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?

The schema covers 72% of parameters, so the baseline is 3, and the description's mention of "thank-you page, dataLayer event or click" loosely maps to the `when` enum without naming its values. Critically, it never explains that many of the 18 parameters are platform-conditional (pixel_id/pixel_event for Meta, conversion_id/conversion_label for Google Ads, measurement_id/event_name for GA4), which is the main semantic risk when invoking this tool.

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 states a specific verb (create) and concrete resources (trigger + conversion tag) across named platforms, and the phrase "One step" distinguishes it from the separate gtm_create_trigger / gtm_create_tag siblings. An agent can tell what it produces without opening the schema.

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?

It implies usage through the workflow note that nothing goes live until gtm_publish, and the DRAFT scoping tells the agent this is a staging step. However, it never says when to prefer the granular gtm_create_trigger/gtm_create_tag tools instead, nor what to do if the trigger already exists; guidance is implied rather than explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources