Configure key events and custom definitions
ga_configure_metricsCreate key events, custom dimensions, and custom metrics on a GA4 property. Existing items are reported instead of duplicated, so you can safely re-run configuration.
Instructions
Creates key events, custom dimensions and custom metrics on a property. Existing ones are reported, not duplicated.
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": {
"propertyId": "<propertyId>"
},
"name": "ga_configure_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyEvents | No | Event names to mark as key events (conversions). | |
| propertyId | Yes | GA4 property ID, e.g. 123456789 or properties/123456789. | |
| customMetrics | No | ||
| customDimensions | No |