ga4_create_event_create_rule
Create a GA4 event-create rule on a data stream to generate new server-side events from event conditions and parameter mutations. Supply conditions in the request body and confirm to apply.
Instructions
[GA4 WRITE] Create an event-create rule on a data stream (server-side event creation). Supply eventConditions/parameterMutations via body. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"property": "<property>",
"dataStreamId": "<dataStreamId>",
"confirm": "<confirm>"
},
"name": "ga4_create_event_create_rule"
}
}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. | |
| confirm | Yes | Must be true to apply the change. | |
| property | Yes | GA4 property ID, e.g. "123456789" or "properties/123456789". | |
| dataStreamId | Yes | Data stream ID (numeric) or "dataStreams/{id}". | |
| destinationEvent | No | Name of the new event this rule creates. |