Skip to main content
Glama
mcp-google-analytics

mcp-google-analytics

Onboard a new site end to end

site_onboard

Set up a new site in Google Analytics 4 end to end: create the property and web stream, add gtag tracking, define key events, and verify data flow. Re-running resumes safely without duplicates.

Instructions

Full flow for a new site: create GA4 property, create web stream, generate the site (or tag an existing folder) with gtag, configure key events/custom definitions, and verify data flow. Safe to call again with the same siteName: it resumes and never duplicates the property.

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": {
      "siteName": "<siteName>",
      "siteUrl": "<siteUrl>"
    },
    "name": "site_onboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesNoPages to generate. The first page (or slug 'index') becomes index.html.
siteUrlYesPublic URL where the site will live.
siteNameYes
timeZoneNoAmerica/Lima
accountIdNo
keyEventsNoEvent names to mark as key events (conversions).
outputDirNoWhere to generate the site. Default: /app/sites-output/<slug>.
propertyIdNoReuse an existing property instead of creating one.
descriptionNo
currencyCodeNoUSD
customMetricsNo
sendTestEventNoSend a Measurement Protocol test event to confirm GA receives data.
existingSiteDirNoTag this existing folder instead of generating a site.
customDimensionsNo
industryCategoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose high-value behavior that no structured field captures: idempotent resume by siteName and no duplicate property creation. It omits auth/permission prerequisites, whether existing files in outputDir or existingSiteDir get overwritten, and what happens on partial failure midway through the flow.

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?

Two sentences, both front-loaded: the flow and its steps come first, the idempotency guarantee second. Every clause carries information (a step name or a safety property) with no filler.

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 a 15-parameter orchestrator with no annotations and no output schema, the description covers the pipeline adequately but leaves the agent guessing about the return value (property ID, stream/measurement ID, verification result) and about auth prerequisites. It is complete enough to choose the tool, not quite complete enough to predict its result.

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?

Schema description coverage is only 47% across 15 parameters, so the description must compensate. It maps phases to intent (property creation, key events, custom definitions, site generation vs existingSiteDir) but adds no meaning for accountId, industryCategory, timeZone, currencyCode, sendTestEvent, or propertyId reuse — all of which the agent must read from the schema alone.

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 composite verb and resource ('Full flow for a new site') and then enumerates every sub-operation it performs: create GA4 property, create web stream, generate or tag a site with gtag, configure key events/custom definitions, verify data flow. That enumeration lets an agent see it subsumes siblings like ga_create_property, ga_create_web_stream and site_generate without opening any 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 a clear trigger (a brand-new site) and an alternative branch ('or tag an existing folder'), plus explicit re-call semantics: 'Safe to call again with the same siteName: it resumes and never duplicates the property.' What it does not provide is an exclusion — it never says when to prefer the granular siblings (site_generate, site_inject_tracking, site_onboarding_status) over this orchestrator.

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