ga4_get_metadata
Retrieve the full GA4 dimension and metric catalog for a property, including custom fields when a property ID is supplied. Use it to discover valid field names before creating reports.
Instructions
Fetch the full GA4 dimension + metric catalog for a property.
If property_id is omitted, returns the universal catalog (excludes property-specific custom fields). Pass a property_id to include custom dimensions and metrics like 'customEvent:foo' and 'customUser:signup_plan'.
Response: {"dimensions": [...], "metrics": [...]}. Each entry has api_name, ui_name, description, category, custom_definition.
Call this before run_report when the agent is uncertain about field names: GA4's catalog is large and custom fields require the property to resolve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |