Skip to main content
Glama
Google Ads MCP Server

Google Ads MCP Server

execute_gaql_query

Run custom GAQL queries to retrieve Google Ads reporting data with SELECT, WHERE, ORDER BY, LIMIT, and PARAMETERS clauses for tailored insights.

Instructions

Execute a custom GAQL (Google Ads Query Language) query. Supports SELECT, FROM, WHERE, ORDER BY, LIMIT, and PARAMETERS clauses. Use this for any custom reporting or data retrieval.

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": {
      "customerId": "<customerId>",
      "query": "<query>"
    },
    "name": "execute_gaql_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesGAQL query (e.g., SELECT campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_30_DAYS)
pageSizeNo
customerIdYesThe customer ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden. It never states that GAQL is read-only, that results are paginated (even though a pageSize parameter exists), what happens on malformed queries, or any quota/rate-limit constraints — a significant gap for a tool an agent may call with arbitrary user-supplied query text.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action and capability, with no filler. Slightly more structure (e.g. separating read-only/limits from capability list) could improve it, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description should explain result shape and pagination behavior for a tool that returns arbitrary report data. It covers the input language adequately but omits what the caller gets back and how to page through it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and the query parameter already carries an example, so the baseline is 3. The description adds genuine value by naming the supported clauses (including the less common PARAMETERS clause), but it says nothing about pageSize or the customerId format, leaving the undocumented third of parameters unaddressed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Execute a custom GAQL query') and enumerates the supported clauses, which tells an agent exactly what capability this exposes. It does not name any sibling (e.g. get_account_dashboard or compare_date_ranges) to show when this generic executor is preferred over a prebuilt report, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use this for any custom reporting or data retrieval' gives a broad usage context, so the agent knows the intended domain. However, there are no exclusions or named alternatives, and the sibling list contains many prebuilt read tools whose overlap with this one is never addressed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools