Google Analytics: Get Custom Dimensions And Metrics
ga4_get_custom_dimensions_and_metricsList the custom dimensions and custom metrics defined on one GA4 property of the user's connected Google Analytics login, with the apiName to use in ga4_run_report (customEvent:…, customUser:…, customItem:…) and each one's display name and description. Standard dimensions and metrics are not listed — they are the same for every property and documented at https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema. Read-only.
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_id": "<property_id>"
},
"name": "ga4_get_custom_dimensions_and_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property_id | Yes | The GA4 property: its number (123456789) or properties/123456789. Must be one of the properties ga4_get_account_summaries lists for the connected login. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property | Yes | properties/<number>. | |
| customMetrics | Yes | Custom metrics. | |
| customDimensions | Yes | Custom dimensions. |