Skip to main content
Glama

Honeyfield Marketing MCP

WordPress: Tracking configure

wp_tracking_configure
Destructive

GTM-Container auf der WordPress-Seite einbinden oder entfernen — ohne eine Theme-Datei anzufassen. Vorher wp_tracking_status lesen: Steht dort 'scan_hinweis', kann der Container längst über ein Cookie-Banner laden — dann NICHT setzen, sonst lädt er doppelt. gtm_container_id im Format GTM-XXXXXXX (sonst hf_invalid_tracking_id); leerer String entfernt ihn; weggelassen → no_changes. Nach dem Schreiben werden die Seiten-Caches geleert und die Startseite erneut geprüft. Liefert config, changed, output_active, purged_caches, scan, duplicates; hf_write_failed = ein anderes Plugin blockiert das Speichern. NUR GTM: GA4 und Meta-Pixel lassen sich bewusst nicht direkt setzen (wer einen Container hat, konfiguriert beides darin; der direkte Pixel macht den Seitenbetreiber nach Fashion ID zum gemeinsam Verantwortlichen). Erkannt werden sie weiterhin — siehe wp_tracking_status und wp_site_health. Consent Mode v2 steht auf 'denied', damit Tags nicht in unbestimmtem Zustand feuern; das Laden von gtm.js überträgt trotzdem IP und aufgerufene Seite an Google. Fehlt ein erkennbares Consent-Werkzeug, lehnt der Connector mit 'hf_consent_required' ab. Diese Sperre kannst du NICHT übergehen — der Website-Betreiber muss sie in WordPress selbst freigeben (dann steht consent_ack in wp_tracking_status auf true). Sie greift nur beim Setzen/Ändern einer ID, nicht beim Entfernen. Braucht Connector-Plugin ab 1.2.0 mit aktiviertem Modul „Tracking" (ab 1.3.0 ab Werk an; bei älteren Versionen zum Plugin-Update raten). Bei {"error": "wp_timeout"} oder "wp_unreachable" ist offen, ob die Änderung angekommen ist — erst nachsehen, nicht blind wiederholen. workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace).

Input Schema

NameRequiredDescriptionDefault
workspaceNo
gtm_container_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, it discloses cache purging, homepage re-checking, the consent-tool lock and that the lock cannot be bypassed, plugin-version requirements, and ambiguous timeout/unreachable outcomes. These are exactly the behavioral traits an agent needs before invoking a destructive write tool.

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 front-loaded with purpose and the critical prerequisite, and nearly every sentence carries operational value. It is dense and lengthy, with some legal rationale that could be trimmed, but the complexity of the tool justifies most of the detail.

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?

The tool is a destructive, consent-gated write operation, and the description covers prerequisites, exclusions, errors, consent blocking, and plugin requirements. Although an output schema exists, the description still helpfully names key return fields and failure states.

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?

Schema coverage is 0%, so the description must carry parameter meaning and does: gtm_container_id format GTM-XXXXXXX, empty string removes, omitted means no_changes, and invalid format yields hf_invalid_tracking_id. It also explains the optional workspace slug.

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 first sentence states a specific verb and resource: embed or remove a GTM container on a WordPress site without touching theme files. It also explicitly separates this tool from the read-only sibling wp_tracking_status.

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

Usage Guidelines5/5

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

The description gives an explicit prerequisite (read wp_tracking_status first) and a clear when-not-to-use condition: if scan_hinweis is present, do not set the container because it may already load via a cookie banner. It also excludes GA4 and Meta Pixel configuration and routes those to wp_tracking_status / wp_site_health.

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