Google Analytics tools: every read and write tool the agent and MCP can call
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)
| Tool | What it does |
|---|---|
ga4__query_overview | Traffic/engagement overview |
ga4__query_top_pages | Top pages report |
ga4__query_traffic_sources | Traffic sources / channels |
ga4__query_conversions | Conversions / key events report |
ga4__query_geo | Geography report |
ga4__query_devices | Device category report |
ga4__run_report | Run a GA4 report (dimensions/metrics/dateRange) |
ga4__run_realtime_report | Run a GA4 realtime report |
ga4__batch_run_reports | Run several GA4 reports in one call |
ga4__run_funnel_report | Step-by-step funnel completion + drop-off (GA4 Data API v1alpha — alpha surface, may change without a sunset notice) |
ga4__run_cohort_report | Retention by acquisition cohort |
ga4__run_pivot_report | Cross-tab dimensions in one call |
ga4__get_metadata | Available dimensions/metrics for the property (field discovery) |
ga4__check_compatibility | Validate a dimension/metric COMBINATION before spending a run_report. |
ga4__list_annotations | GA4 reporting-data ANNOTATIONS on this property (newest first; Admin API v1alpha — alpha surface): title, description, date (or range), color, and… |
ga4__get_property | The property's settings: REPORTING TIME ZONE (the day boundary of every GA4 report), currency, industry, service level (standard / 360), parent account. |
ga4__detect_anomalies | Detect metric anomalies (spikes/drops vs weekday-aware baseline) over the recent days — for monitoring/异常检测. |
ga4__list_custom_dimensions | List the property's custom dimensions |
ga4__list_audiences | List GA4 audiences |
ga4__list_key_events | List key events (conversions) |
ga4__list_custom_metrics | List the property's custom metrics |
ga4__list_google_ads_links | List Google Ads ↔ GA4 links |
ga4__list_access_bindings | Who has access to the connected property: access bindings (address, roles viewer / analyst / editor / admin / no-cost-data / no-revenue-data). |
ga4__list_channel_groups | The 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_streams | The property's data streams: web (measurement id G-…, site URL) and app (package / bundle id) |
ga4__get_data_retention | Event and user data retention (how far back explorations reach) and whether user data resets on new activity |
ga4__list_event_create_rules | Event create rules on the property's web streams: the new event each makes and the conditions that trigger it |
ga4__get_enhanced_measurement | Enhanced measurement on a web stream: scrolls, outbound clicks, site search, video, file downloads, page changes, form interactions |
ga4__get_attribution_settings | Attribution model, conversion lookback windows and which channels share conversion credit with Google Ads |
ga4__list_measurement_protocol_secrets | A data stream's Measurement Protocol API secrets (names only — a secret's value never leaves the server) |
ga4__validate_events | Check server-side events with Google's Measurement Protocol validation server — nothing is recorded. |
ga4__prepare_data_import | Build a GA4 Data Import CSV (campaign cost from other ad platforms, fully checked) and the upload steps. |
ga4__list_bigquery_links | BigQuery 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_get | RAW GA4 API read — for anything the typed tools above do not cover (Admin API: properties, dataStreams, audiences, customDimensions, conversionEvents,… |
ga4__diagnose_unassigned_traffic | Share 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.
| Tool | Approval | What it does |
|---|---|---|
ga4__create_annotation | Approval setting | Pin an explanation to a DATE in GA4's own reports ("pricing change", "site migration", "Black Friday"). |
ga4__delete_annotation | Person approves | Delete a reporting-data annotation by its resource name (from list_annotations). |
ga4__update_annotation | Approval setting | Edit a reporting-data annotation (Admin v1alpha): title, description, color, or move it to another date / range. |
ga4__create_audience | Approval setting | Create a GA4 audience |
ga4__create_key_event | Approval setting | Mark an event as a key event |
ga4__create_custom_dimension | Approval setting | Create a custom dimension |
ga4__create_custom_metric | Approval setting | Create a custom metric — a numeric event param becomes reportable. |
ga4__update_custom_metric | Approval setting | Rename/re-describe a custom metric (parameterName + scope + measurementUnit immutable) |
ga4__archive_custom_metric | Person approves | Archive a custom metric, freeing the property slot — no delete exists |
ga4__update_property | Approval setting | Update GA4 PROPERTY settings: displayName (rename), timeZone, currencyCode, industryCategory. |
ga4__update_audience | Approval setting | Rename/re-describe an audience (criteria are immutable in GA4) |
ga4__archive_audience | Person approves | Archive an audience — irreversible; GA4 has no audience delete |
ga4__update_key_event | Approval setting | Change a key event's counting method (eventName is immutable) |
ga4__delete_key_event | Person approves | Delete a key event — stops the conversion feed Smart Bidding uses |
ga4__update_custom_dimension | Approval setting | Rename/re-describe a custom dimension (parameterName + scope immutable) |
ga4__archive_custom_dimension | Person approves | Archive a custom dimension, freeing the property slot — irreversible |
ga4__create_google_ads_links | Approval setting | Link 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_link | Approval setting | Link a Google Ads account (10-digit customer id) to the property — conversion import and audience sharing. |
ga4__update_google_ads_link | Approval setting | Turn ads personalization (audience sharing for remarketing) on or off for a linked Google Ads account |
ga4__delete_google_ads_link | Person approves | Unlink a Google Ads account — conversion import and audience sharing stop; a person approves it on every lane |
ga4__create_access_binding | Person approves | Give 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_binding | Person approves | Change a person's roles on the property; never an admin or the connection's own login. |
ga4__delete_access_binding | Person approves | Remove a person's property access; never the last admin or the connection's own login. |
ga4__create_channel_group | Approval setting | CUSTOM CHANNEL GROUP. |
ga4__update_channel_group | Approval setting | Rename / re-describe a custom channel group, REPLACE its rules (the full ordered list), or make it primary. |
ga4__delete_channel_group | Person approves | Delete a custom channel group — permanent; a person approves it on every lane. |
ga4__create_data_stream | Approval setting | Create 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_property | Person approves | Create property |
ga4__update_data_retention | Approval setting | Change data retention (2 / 14 months; 26 / 38 / 50 on GA4 360). |
ga4__create_event_create_rule | Approval setting | Make a NEW event from matching ones… |
ga4__delete_event_create_rule | Approval setting | Delete an event create rule by its resource name (the events it already made stay) |
ga4__update_enhanced_measurement | Approval setting | Switch enhanced-measurement events on / off on a web stream (streamEnabled is the master switch); reversible |
ga4__update_attribution_settings | Person approves | Change 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_secret | Approval setting | Create a Measurement Protocol API secret on a data stream (displayName); its value stays on the server for send_events. |
ga4__send_events | Person approves | Send 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.
Related pages
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.