Analytics dimensions and metrics
list_ga4_dimensions_and_metricsFind valid GA4 dimension and metric API names, including custom fields, for a property so your reports and queries reference the right fields.
Instructions
List the dimensions and metrics a GA4 property can report on, including custom ones.
Returns the exact API names valid in run_ga4_report for this property: each with its UI name, category, whether it is a custom definition (customEvent:..., customUser:...), and deprecated API names; metrics also carry their type and, for calculated metrics, the expression. Reads the GA4 Data API metadata (properties.getMetadata), which uses no report quota.
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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | "all" (default), "dimensions" or "metrics". | all |
| search | No | Case-insensitive text matched against API name, UI name, category, description and deprecated API names (e.g. "channel", "revenue", or the legacy "conversions", which finds keyEvents). Empty returns everything. | |
| custom_only | No | True returns only the property's custom dimensions and metrics. | |
| property_id | No | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. | |
| include_descriptions | No | Include each field's description. Defaults to true when search is set and false otherwise (the full list is long). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||