Skip to main content
Glama

WordPress: Install tracking

wp_install_tracking
DestructiveIdempotent

Install or remove tracking and verification on a client's WordPress site, by ID. Accepts a GA4 measurement ID (G-…), a Tag Manager container (GTM-…), a Google Ads tag (AW-…), a Search Console verification token (the meta tag from site_verification_token, or its content value), one Google Ads conversion (label + the page path it fires on, e.g. /thank-you/), and CALL TRACKING: phone_clicks=on fires a GA4 phone_click event on every tel: tap (plus an Ads conversion via phone_click_label), and call_conversion_label + phone_number installs Google's website-call number swap. The plugin builds every tag itself — this tool takes IDs ONLY and cannot install arbitrary HTML or script, by design. Send an empty string to remove an ID. Checks the live home page for tags already present so nothing is double-installed. Needs an Administrator connection and Bridge 1.2.1+. Previews (showing the exact tags) unless confirm is true.

Input Schema

NameRequiredDescriptionDefault
siteYes
ads_idNoe.g. AW-123456789 (from ads_create_conversion_action's tag); "" removes it
ga4_idNoe.g. G-ABCD123456; "" removes it
gtm_idNoe.g. GTM-ABC1234; "" removes it
confirmNoLeave false to preview: nothing changes and the preview shows exactly what would happen. Set true only after the user has agreed to this exact change.
phone_clicksNo"on" fires a GA4 phone_click event whenever a tel: link is tapped (needs ga4_id or ads_id)
phone_numberNoThe client's lead phone number as shown on the site, e.g. +1 (425) 555-0100 — used for the website-call number swap
conversion_pathNoPage the conversion fires on, e.g. /thank-you/
conversion_labelNoGoogle Ads conversion label — needs ads_id and conversion_path
gsc_verificationNoThe meta tag from site_verification_token, or its content value; "" removes it
phone_click_labelNoAds conversion label to ALSO fire on a tel: tap — from ads_create_conversion_action type WEBPAGE (a click) or AD_CALL; needs ads_id
call_conversion_labelNoAds WEBSITE_CALL conversion label — Google swaps a tracking number in for ad visitors; needs ads_id and phone_number

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / confirm / description
      Added value: +"Leave false to preview: nothing changes and the preview shows exactly what would happen. Set true only after the user has agreed to this exact change."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, but the description adds critical context beyond them: it checks the live home page to avoid double-installs, requires an Administrator connection and Bridge 1.2.1+, previews by default, and cannot install arbitrary scripts by design. This is rich behavioral disclosure.

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 paragraph is long and densely packed, but front-loads the core purpose and then systematically covers each tracking type. Every sentence adds technical detail, though the density slightly reduces scannability.

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

Completeness5/5

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

For a complex, 12-parameter mutation tool with no output schema, the description covers the full behavioral envelope: preview/confirm workflow, auth requirements, installation limits, removal semantics, and integration dependencies. An agent has everything needed to call it correctly and safely.

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?

With 92% schema coverage, the schema already documents most parameters well. The description still adds value by interpreting the formats (G-…, GTM-…, AW-…), explaining phone_clicks=on behavior, and clarifying GSC verification token input – going beyond the schema's terse examples.

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+resource ('Install or remove tracking and verification on a client's WordPress site, by ID') and enumerates every supported tracking type (GA4, GTM, Ads, GSC, conversions, call tracking), clearly distinguishing this tool from siblings like ads_create_conversion_action or site_verification_token.

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?

It provides strong usage context: IDs only (cannot install arbitrary HTML), empty string removes an ID, and it previews unless confirm is true. It doesn't explicitly name alternatives or when-not-to-use against sibling tools, keeping it at 4 rather than 5.

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.