ga4_check_compatibility
Check whether selected dimensions and metrics can be queried together before running a report, preventing costly errors.
Instructions
Validate whether a dim/metric combo can be queried together. Cheap pre-flight.
compatibility_filter: 'COMPATIBLE' (default, returns only fields that work with the provided selection) or 'INCOMPATIBLE' (returns only fields that would conflict).
Use before run_report when composing exploratory queries, cheaper than catching a GoogleAdsException after a big failed report.
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": "ga4_check_compatibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | No | ||
| dimensions | No | ||
| property_id | Yes | ||
| metric_filter | No | ||
| dimension_filter | No | ||
| compatibility_filter | No | COMPATIBLE |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |