ga4_update_data_stream
Update display name and default URI for a GA4 data stream. Guide users to GA4 Admin UI for cross-domain and session settings.
Instructions
[GA4 WRITE] Update a data stream: displayName and (web) defaultUri ONLY. Cross-domain domains, unwanted referrals, internal traffic and session settings are Google tag settings with NO Admin API fields - never attempt them; direct the user to GA4 Admin > Data streams > Configure tag settings. Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Raw request-body object (JSON) merged OVER the typed fields — use for nested/advanced fields not exposed as flat args. | |
| name | Yes | Full resource name of the data stream to target, e.g. "properties/123/…/456". | |
| confirm | Yes | Must be true to apply the change. | |
| defaultUri | No | New site URL for a WEB stream (webStreamData.defaultUri). | |
| updateMask | No | Comma-separated field paths to update. Omit to derive from the supplied fields. | |
| displayName | No |