google ads validate query
google_ads_validate_queryValidate Google Ads query metric, dimension, and resource compatibility before execution. Checks segment restrictions and resource availability to prevent invalid GAQL requests.
Instructions
Validate metric/dimension/resource compatibility BEFORE executing a query. Checks segment restrictions and resource availability.
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": {
"metrics": "<metrics>"
},
"name": "google_ads_validate_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | Yes | Metric keys to validate | |
| resource | No | Native Google Ads resource from which the GAQL query selects rows. | campaign |
| dimensions | No | Dimension keys to validate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |