get_report_metadata
Retrieves official GA4 dimension and metric names, types, and descriptions, including custom definitions, so you can use exact fields in reports and filters.
Instructions
Get official GA4 dimension/metric names, types and descriptions.
Args: property_id: Numeric property ID or properties/ID. Use 0 for universal metadata only; use a real property to include its custom definitions.
Returns: Metadata including dimensions and metrics with api_name and custom_definition. Use these exact names in reports and filters.
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_report_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property_id | Yes | Numeric GA4 property ID or properties/ID; metadata property 0 is universal |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| metrics | No | ||
| dimensions | No |