List Analytics custom definitions
list_ga4_custom_definitionsList a GA4 property's custom dimensions and custom metrics, with how many slots are left.
Returns each custom dimension's resource name, parameter name, display name, scope (EVENT, USER or ITEM) and description, and each custom metric's resource name, parameter name, display name, measurement unit and description, plus usage per kind against the property's limit (standard: 50 event, 25 user, 10 item dimensions, 50 metrics; 360: 125, 100, 25, 125). Use it before draft_ga4_custom_dimension or draft_ga4_custom_metric. For the field names to use in reports, see list_ga4_dimensions_and_metrics. Reads the GA4 Admin API (customDimensions.list, customMetrics.list).
Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Admin API: https://developers.google.com/analytics/devguides/config/admin/v1
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_ga4_custom_definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property_id | No | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||