Skip to main content
Glama
google-ads-mcp

google-ads-mcp

by aisandler

gads_query

Execute custom Google Ads Query Language (GAQL) queries to retrieve campaign and performance data not covered by standard reporting tools.

Instructions

Execute a custom GAQL (Google Ads Query Language) query.

This is the power-user tool for any query not covered by other tools. Note: When segments.date is in WHERE, it MUST also be in SELECT.

Example: SELECT campaign.name, metrics.clicks FROM campaign WHERE campaign.status = 'ENABLED'

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

Input Schema

NameRequiredDescriptionDefault
queryYesA valid GAQL (Google Ads Query Language) query.
customer_idNoGoogle Ads customer ID (10-digit, no dashes). Overrides the default GOOGLE_ADS_CUSTOMER_ID env var. Required when managing multiple client accounts from a single MCP instance.
response_formatNoOutput format: "markdown" for readable tables, "json" for structured data.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose one genuine validation rule (segments.date in WHERE must also appear in SELECT) plus a worked example. It says nothing about result limits, pagination, quota/rate-limit behavior, error responses, or whether the query is strictly read-only, so meaningful gaps remain.

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

Conciseness5/5

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

Four short lines: purpose, routing rule, a critical constraint, and a concrete example. Nothing is padded and the most decision-relevant information comes first.

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

Completeness4/5

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

There is no output schema, but response_format in the schema tells the agent what to expect, and the description supplies the query-language name plus a valid example. For a free-form query tool it would be stronger with a note on result caps or GAQL version/resource limits, but it is sufficient to call correctly.

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 description coverage is 100%, so query, customer_id, and response_format are already documented with format hints and enum values. The description adds no meaning beyond the schema for any parameter, which is acceptable at this coverage level but not additive.

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

Purpose5/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 immediately scopes it as "the power-user tool for any query not covered by other tools," which cleanly separates it from the named report siblings like gads_campaign_performance. An agent can route between this and the fixed-report tools without opening either schema.

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

Usage Guidelines4/5

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

Gives a clear selection rule: use this when no other tool covers the query, otherwise prefer the dedicated tools. It does not name the specific alternatives or state a hard when-not (e.g., "do not use for simple campaign lists, use gads_list_campaigns"), so guidance is solid but not exhaustive.

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