ga4 get custom definitions
ga4_get_custom_definitionsLists custom dimensions and metrics available in GA4 Data API metadata for a property ID, providing a read-only inventory of custom definitions.
Instructions
List custom dimensions and custom metrics exposed by GA4 Data API metadata. Read-only fallback for custom definition inventory.
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": "ga4_get_custom_definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| propertyId | Yes | GA4 property ID (numeric, e.g., 123456789) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |