Read-only GAQL query
run_readonly_queryExecutes allow-listed Google Ads Query Language SELECT queries to retrieve ad performance data and rejects account-changing operations before they leave the server.
Instructions
Runs a Google Ads Query Language SELECT on an allow-listed resource. Anything that could change the account is refused before it leaves the server.
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": {
"account_id": "<account_id>",
"query": "<query>"
},
"name": "run_readonly_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| account_id | Yes |