Skip to main content
Glama

Store Manager for WooCommerce

AddSynapse: draft a measurement code (Analytics, Pixel…)

plan_tracking_code

AddSynapse: Prepare a DRAFT that adds, changes or removes a measurement code on every public page. Give ONLY the provider and the ID the user gave you (for example {"provider": "ga4", "id": "G-ABC123XYZ9"}): never write, paste or ask for tracking code — the site builds the provider's official code itself. Providers: ga4 (Google Analytics 4, G-…), gtm (Google Tag Manager, GTM-…), google_ads (Google Ads, AW-…), meta (Meta / Facebook Pixel, digits), clarity (Microsoft Clarity project id), tiktok (TikTok Pixel id). Any other provider is not supported yet. Cookie consent: with a cookie banner plugin the code follows the visitor's choice (Google Consent Mode v2 starts «denied»); without one the draft says so — tell the user. Read the warnings: another plugin or the theme may already add the same code (visits counted twice) — tell the user before they approve. Changes nothing by itself: nothing changes until the user presses Approve on the draft card; Undo removes it exactly. Before calling it, say in plain words what will change and get the user's agreement.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "codes": "<codes>"
    },
    "name": "plan_tracking_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoWhich connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site.
codesYesone entry per provider

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnly=false, destructive=false, idempotent=false); the description goes much further by explaining that nothing changes until the user presses Approve, that Undo reverses it exactly, that the site generates the provider's official snippet, and that the draft reports duplicate-code risks and Google Consent Mode v2 defaults to 'denied'. This is the kind of behavioral context an agent cannot derive from the annotations.

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 purpose is front-loaded in the first sentence and every subsequent clause carries operational weight (ID format, consent behavior, duplicate warnings, approve/undo semantics). It is dense and reads as one long block of mixed concerns, which costs some scannability, but there is little filler to cut.

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 two-parameter planning tool with no output schema, the description covers everything an agent needs: what the draft does, what the agent must and must not ask the user, what the draft card will surface, and how approval and undo behave. Nothing essential is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the ID must be given exactly as the user supplied it, and each provider's ID shape is spelled out (G-…, GTM-…, AW-…, digits for Meta, project id for Clarity). It also states that only these providers are accepted, reinforcing the schema's provider field beyond its plain list.

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 opens with a precise verb+resource+scope: 'Prepare a DRAFT that adds, changes or removes a measurement code on every public page.' It enumerates the six supported providers (ga4, gtm, google_ads, meta, clarity, tiktok) and states that others are unsupported, which lets an agent separate this planning tool from the other plan_* siblings without reading 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 Guidelines4/5

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

It gives explicit call-time guidance: pass only provider and ID, never ask the user for the tracking snippet, and 'Before calling it, say in plain words what will change and get the user's agreement.' It also tells the agent to relay duplicate-tag and cookie-consent warnings before approval. The gap is that no alternative tool is named (e.g. describe_tracking for reviewing existing codes), so there are no explicit exclusions.

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