Skip to main content
Glama
GermaniU

ga4-seo-mcp

by GermaniU

bootstrap_site_measurement

Read-only

Plan or apply a website's GA4 and Search Console measurement setup: detect existing assets, create only missing properties, streams, key events, dimensions, then report IDs and verification tokens.

Instructions

Plan, and optionally apply, the full measurement setup of a website.

With apply=False (default) nothing is changed: it detects what already exists for the site (GA4 property and web stream matched by the site's domain, key events, custom dimensions, Search Console domain property) and returns the steps that would run. Show this plan to the user and get explicit confirmation before calling apply=True.

With apply=True (requires the server to run with --enable-writes) it creates only the missing pieces, skipping what exists, so it is safe to re-run. It returns a step-by-step report with the GA4 measurement ID (G-...) and the DNS TXT token for Search Console. DNS verification and sitemap submission stay manual follow-up steps (sc_verify_site_dns, sc_submit_sitemap) because the TXT record must be published first.

Args: site_url: the site, e.g. 'https://example.com'. account_id: GA4 account that owns (or will own) the property; see list_account_summaries. property_display_name: name for a new property; also used to find an existing one. time_zone: IANA time zone for a new property, e.g. 'America/Mexico_City'. currency_code: ISO 4217 currency for a new property, e.g. 'USD'. key_events: event names to mark as key events, e.g. ['generate_lead']. custom_dimensions: parameters to register as custom dimensions. apply: False = plan only (default); True = execute the plan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applyNo
site_urlYes
time_zoneYes
account_idYes
key_eventsNo
currency_codeYes
custom_dimensionsNo
property_display_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior1/5

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

The description states that with apply=True the tool 'creates only the missing pieces' (GA4 property, stream, key events, dimensions), which is a write operation, while annotations declare readOnlyHint=true. An agent trusting the annotation could invoke apply=True believing the call is non-mutating. The description's own behavioral content is rich, but it directly contradicts the structured safety hint.

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?

Front-loads the plan-vs-apply distinction, which is the single most important fact, then covers safety, returns, and follow-ups before a clean Args list. It is longer than average, but the length is justified by an 8-parameter dual-mode tool; a little tightening around the repeated 'missing pieces / skipping what exists' phrasing is possible.

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 an open-world, potentially-mutating bootstrap tool this covers the mode switch, confirmation requirement, server prerequisite (--enable-writes), idempotency, and manual follow-up steps. An output schema exists, so it correctly does not need to narrate return structure beyond mentioning the G- measurement ID and TXT token.

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 description coverage is 0%, so the description must carry the parameter burden, and it does: every one of the eight args is documented with meaning, format, or example (site_url URL form, account_id cross-reference to list_account_summaries, IANA time_zone, ISO 4217 currency_code, key_events example, custom_dimensions, and apply's default semantics).

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?

States a specific verb and resource ('Plan, and optionally apply, the full measurement setup of a website') and immediately scopes its domain (GA4 property/stream, key events, custom dimensions, Search Console property). This is clearly distinguishable from sibling read-only lookups like list_properties or list_data_streams.

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?

Gives explicit when-to-use guidance: default apply=False produces a plan that must be shown to the user for confirmation before apply=True. It also names the alternatives for the parts it does not handle (sc_verify_site_dns, sc_submit_sitemap) and explains why they stay manual, so the agent knows exactly where this tool's job ends.

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