Ducto

Google Analytics 4

Admin API writes — audiences, key events, and links — under policy

Your agent configures GA4 properties through the Admin API: audiences, key events, custom dimensions, enhanced measurement, and Google Ads links. Fourteen tools, half of them writes, all of them governed.

17 tools10 read7 writemcp.getducto.com/ga4
connect the ga4 mount

$ claude mcp add --transport http ga4 \

https://mcp.getducto.com/ga4

✓ connected — 17 tools

read-only until you set a policy

What your agent does here

Real Google Analytics 4 work, in conversation

Build and maintain audiences

Create, patch, and archive audiences with the exact filter clauses the Admin API supports.

ga4_create_audiencega4_patch_audiencega4_archive_audiencega4_list_audiences

Define what counts as a conversion

Create key events and custom dimensions so reporting matches how your business actually measures.

ga4_create_key_eventga4_list_key_eventsga4_create_custom_dimension

Wire GA4 to Google Ads

Create and inspect Google Ads links, and control enhanced measurement per stream.

ga4_link_google_adsga4_list_google_ads_linksga4_set_enhanced_measurement

Governed writes

How writes are enforced

Admin writes reshape how a property measures, so each one dry-runs as a preview your agent must match before apply. Archiving an audience is flagged destructive and can sit behind approval.

read-only defaultcaps ← policy rowpreview before applyapproval on flagged classeshash-chained audit

The full request path is on the security architecture page.

Tool reference

Every tool in the ga4 mount

Generated from the running gateway's tool registry — this is the complete list, not a highlight reel.

ga4_archive_audiencewriteArchive (soft-delete) an audience.
ga4_create_audiencewriteCreate an audience (v1alpha) from a full audience body.
ga4_create_custom_dimensionwriteCreate a custom dimension for an event/user parameter.
ga4_create_key_eventwriteMark an event as a key event (conversion).
ga4_get_audiencereadGet one audience by resource name.
ga4_get_metadatareadList the dimension/metric API names this property accepts, custom ones included.
ga4_link_google_adswriteLink a Google Ads customer to a GA4 property.
ga4_list_audiencesreadList a property's audiences.
ga4_list_custom_dimensionsreadList a property's custom dimensions.
ga4_list_google_ads_linksreadList a property's Google Ads links.
ga4_list_key_eventsreadList a property's key events (conversions).
ga4_list_streamsreadList a property's data streams (web/app), including their ids.
ga4_patch_audiencewritePatch mutable fields (name/description) of an audience.
ga4_run_realtime_reportreadRun a GA4 realtime report (the last 30 minutes; no date range).
ga4_run_reportreadRun a GA4 report: sessions/conversions/revenue by any dimension. Dates are 'YYYY-MM-DD' or relative ('yesterday', '28daysAgo'). `metrics` and `dimensions` take GA4 API names (sessions, conversions, totalRevenue; date, sessionDefaultChannelGroup, landingPage) — call `ga4_get_metadata` to discover valid names, including this property's custom ones. Rows are returned flattened, with metrics as numbers.
ga4_set_enhanced_measurementwriteEnable/disable enhanced measurement on a web data stream.
ga4_statusreadReport this token's GA4 policy (read-only, approval) and connection health.