All docs
Reference

Google Analytics tools: every read and write tool the agent and MCP can call

TL;DR

35 read and 35 write tools. Full read/write support for the platform's API-supported operations.

Support and limitations

  • Full read/write support for the platform's API-supported operations.
  • Permissions: the connected login's role and the permissions it granted decide what each tool can read or change. A tool the login cannot use answers with what is missing; it never works around it.
  • Approvals: in the app, changes wait for approval unless the task runs with auto-approve. Over MCP and REST they follow the credential's setting (an API key applies ordinary changes at once unless it is set to require approval; a third-party OAuth connection waits). 13 writes are marked “Person approves”: they wait for a person on every lane — only the workspace's own OAuth app and an API key an admin set to apply changes you can't take back skip that wait. Forbidden Rules can block any of them.
  • Data Import has no upload API: cost and item data are uploaded in Google Analytics Admin (the agent prepares the file).
  • Internal-traffic data filters, unwanted referrals, cross-domain and IP exclusion are not in the Admin API.
  • A new Google Analytics account needs a person to accept Google's terms; properties can be created under a connected account.
  • Events sent through the Measurement Protocol cannot be deleted, so a real send waits for a person.
  • User-access changes are made only through the typed tools, approved by an admin — never through raw requests.
  • Operations the platform's API does not offer, and operations not in the catalog, are not available through these tools.

Read tools (35)

ToolWhat it does
ga4__query_overviewTraffic/engagement overview
ga4__query_top_pagesTop pages report
ga4__query_traffic_sourcesTraffic sources / channels
ga4__query_conversionsConversions / key events report
ga4__query_geoGeography report
ga4__query_devicesDevice category report
ga4__run_reportRun a GA4 report (dimensions/metrics/dateRange)
ga4__run_realtime_reportRun a GA4 realtime report
ga4__batch_run_reportsRun several GA4 reports in one call
ga4__run_funnel_reportStep-by-step funnel completion + drop-off (GA4 Data API v1alpha — alpha surface, may change without a sunset notice)
ga4__run_cohort_reportRetention by acquisition cohort
ga4__run_pivot_reportCross-tab dimensions in one call
ga4__get_metadataAvailable dimensions/metrics for the property (field discovery)
ga4__check_compatibilityValidate a dimension/metric COMBINATION before spending a run_report.
ga4__list_annotationsGA4 reporting-data ANNOTATIONS on this property (newest first; Admin API v1alpha — alpha surface): title, description, date (or range), color, and…
ga4__get_propertyThe property's settings: REPORTING TIME ZONE (the day boundary of every GA4 report), currency, industry, service level (standard / 360), parent account.
ga4__detect_anomaliesDetect metric anomalies (spikes/drops vs weekday-aware baseline) over the recent days — for monitoring/异常检测.
ga4__list_custom_dimensionsList the property's custom dimensions
ga4__list_audiencesList GA4 audiences
ga4__list_key_eventsList key events (conversions)
ga4__list_custom_metricsList the property's custom metrics
ga4__list_google_ads_linksList Google Ads ↔ GA4 links
ga4__list_access_bindingsWho has access to the connected property: access bindings (address, roles viewer / analyst / editor / admin / no-cost-data / no-revenue-data).
ga4__list_channel_groupsThe property's channel groups — Google's default (read-only) and every custom one, each rule's channel name and the dimension fields it uses
ga4__list_data_streamsThe property's data streams: web (measurement id G-…, site URL) and app (package / bundle id)
ga4__get_data_retentionEvent and user data retention (how far back explorations reach) and whether user data resets on new activity
ga4__list_event_create_rulesEvent create rules on the property's web streams: the new event each makes and the conditions that trigger it
ga4__get_enhanced_measurementEnhanced measurement on a web stream: scrolls, outbound clicks, site search, video, file downloads, page changes, form interactions
ga4__get_attribution_settingsAttribution model, conversion lookback windows and which channels share conversion credit with Google Ads
ga4__list_measurement_protocol_secretsA data stream's Measurement Protocol API secrets (names only — a secret's value never leaves the server)
ga4__validate_eventsCheck server-side events with Google's Measurement Protocol validation server — nothing is recorded.
ga4__prepare_data_importBuild a GA4 Data Import CSV (campaign cost from other ad platforms, fully checked) and the upload steps.
ga4__list_bigquery_linksBigQuery export links on the property (project, daily / streaming / fresh-daily flags, excluded events) — is raw event export on, and where does it land
ga4__raw_getRAW GA4 API read — for anything the typed tools above do not cover (Admin API: properties, dataStreams, audiences, customDimensions, conversionEvents,…
ga4__diagnose_unassigned_trafficShare of Unassigned sessions plus the source/medium/campaign triples that land there, each classified with the probable cause (missing utm_medium,…

Write tools (35)

A write marked “Person approves” waits for a person on every lane; the others follow the approval setting of the app or the credential.

ToolApprovalWhat it does
ga4__create_annotationApproval settingPin an explanation to a DATE in GA4's own reports ("pricing change", "site migration", "Black Friday").
ga4__delete_annotationPerson approvesDelete a reporting-data annotation by its resource name (from list_annotations).
ga4__update_annotationApproval settingEdit a reporting-data annotation (Admin v1alpha): title, description, color, or move it to another date / range.
ga4__create_audienceApproval settingCreate a GA4 audience
ga4__create_key_eventApproval settingMark an event as a key event
ga4__create_custom_dimensionApproval settingCreate a custom dimension
ga4__create_custom_metricApproval settingCreate a custom metric — a numeric event param becomes reportable.
ga4__update_custom_metricApproval settingRename/re-describe a custom metric (parameterName + scope + measurementUnit immutable)
ga4__archive_custom_metricPerson approvesArchive a custom metric, freeing the property slot — no delete exists
ga4__update_propertyApproval settingUpdate GA4 PROPERTY settings: displayName (rename), timeZone, currencyCode, industryCategory.
ga4__update_audienceApproval settingRename/re-describe an audience (criteria are immutable in GA4)
ga4__archive_audiencePerson approvesArchive an audience — irreversible; GA4 has no audience delete
ga4__update_key_eventApproval settingChange a key event's counting method (eventName is immutable)
ga4__delete_key_eventPerson approvesDelete a key event — stops the conversion feed Smart Bidding uses
ga4__update_custom_dimensionApproval settingRename/re-describe a custom dimension (parameterName + scope immutable)
ga4__archive_custom_dimensionPerson approvesArchive a custom dimension, freeing the property slot — irreversible
ga4__create_google_ads_linksApproval settingLink SEVERAL Google Ads accounts to the property at once (≤ 20; GA4 has no batch call, so one link per account): a result per account — linked /…
ga4__create_google_ads_linkApproval settingLink a Google Ads account (10-digit customer id) to the property — conversion import and audience sharing.
ga4__update_google_ads_linkApproval settingTurn ads personalization (audience sharing for remarketing) on or off for a linked Google Ads account
ga4__delete_google_ads_linkPerson approvesUnlink a Google Ads account — conversion import and audience sharing stop; a person approves it on every lane
ga4__create_access_bindingPerson approvesGive a person access to the property (roles viewer / analyst / editor / no-cost-data / no-revenue-data — admin is never granted by the agent).
ga4__update_access_bindingPerson approvesChange a person's roles on the property; never an admin or the connection's own login.
ga4__delete_access_bindingPerson approvesRemove a person's property access; never the last admin or the connection's own login.
ga4__create_channel_groupApproval settingCUSTOM CHANNEL GROUP.
ga4__update_channel_groupApproval settingRename / re-describe a custom channel group, REPLACE its rules (the full ordered list), or make it primary.
ga4__delete_channel_groupPerson approvesDelete a custom channel group — permanent; a person approves it on every lane.
ga4__create_data_streamApproval settingCreate a WEB data stream (displayName + the site's URL) — returns the new measurement id; it collects once the Google tag with that id is on the site.
ga4__create_propertyPerson approvesCreate property
ga4__update_data_retentionApproval settingChange data retention (2 / 14 months; 26 / 38 / 50 on GA4 360).
ga4__create_event_create_ruleApproval settingMake a NEW event from matching ones…
ga4__delete_event_create_ruleApproval settingDelete an event create rule by its resource name (the events it already made stay)
ga4__update_enhanced_measurementApproval settingSwitch enhanced-measurement events on / off on a web stream (streamEnabled is the master switch); reversible
ga4__update_attribution_settingsPerson approvesChange the attribution model (data-driven / last click) or the lookback windows; reports re-attribute, reversible; a person approves it (Google Ads imports…
ga4__create_measurement_protocol_secretApproval settingCreate a Measurement Protocol API secret on a data stream (displayName); its value stays on the server for send_events.
ga4__send_eventsPerson approvesSend events to GA4 from the server (Measurement Protocol): validated first, then recorded for good — a person approves it on every lane.

Authorized raw requests

ga4__raw_request sends a request in Google Analytics's own API format, with the connection's credentials injected and the path bound to the connected account. It needs the tools:raw scope. Reads run at once; a change waits for a person unless the credential is an API key whose raw writes an admin pre-authorized, or the workspace's own OAuth app — except a permanent delete, which always waits for a person, and a call the platform's fences refuse, which is never sent.

Frequently asked questions

How many Google Analytics tools are there?
70: 35 read and 35 write, of which 13 always wait for a person. The list on this page is the complete catalog for Google Analytics.
Can an agent call the Google Analytics API directly?
ga4__raw_request sends a request in Google Analytics's own API format, with the connection's credentials injected and the path bound to the connected account. It needs the tools:raw scope. Reads run at once; a change waits for a person unless the credential is an API key whose raw writes an admin pre-authorized, or the workspace's own OAuth app — except a permanent delete, which always waits for a person, and a call the platform's fences refuse, which is never sent.
Use the Google Analytics tools

Run them through the in-app agent, or call them from Claude, ChatGPT, Codex or Cursor over the hosted MCP server.