get_custom_dimensions_and_metrics
Retrieve a GA4 property's custom dimensions and metrics with the API names needed for reports by supplying the property ID.
Instructions
Return the property's custom dimensions and metrics, with the apiName to use in reports.
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": "get_custom_dimensions_and_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property_id | Yes | The Google Analytics property ID: a number, or 'properties/' followed by a number. Use get_account_summaries to find it. |