Skip to main content
Glama
konkomaji

Google Marketing MCP

by konkomaji

ads_run_gaql

Run arbitrary GAQL queries to fetch custom Google Ads metrics and campaign data, enabling flexible reporting for any analysis need.

Instructions

Run an arbitrary GAQL (Google Ads Query Language) query and return rows.

This is the most flexible read tool. Use it for any custom report. Example query: SELECT campaign.id, campaign.name, metrics.clicks, metrics.cost_micros FROM campaign WHERE segments.date DURING LAST_7_DAYS ORDER BY metrics.clicks DESC

Args: customer_id: 10-digit account id (dashes ok). query: full GAQL query string. limit: max rows to return (client-side cap; default 200).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryNo
customer_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It explicitly identifies the tool as a read tool and discloses the client-side row cap with a default of 200. It doesn't cover error handling or authentication, but the read-only nature and row-limiting behavior are the key traits an agent needs.

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?

Well-structured: purpose sentence, usage note, a clear example query, then a tight Args list. Every line earns its place and the example adds practical value without fluff.

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

Completeness5/5

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

For an arbitrary-query tool, the description covers the essentials: what it does, when to use it, how to construct the query, account id format, and row limits. The output schema already exists, so return-value documentation is not needed. Nothing critical is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must fully document parameters. It does: customer_id is explained as a 10-digit account id with dashes allowed, query is 'full GAQL query string,' and limit is a max-rows client-side cap with default 200. This fully compensates for the empty schema descriptions.

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?

Opens with a specific verb and resource: 'Run an arbitrary GAQL query and return rows.' The 'most flexible read tool' framing explicitly differentiates it from narrower reporting siblings like ads_campaign_performance and ads_keyword_performance, and the example query makes the purpose concrete.

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?

States clearly to use it for 'any custom report,' which is actionable context. It does not explicitly name alternatives or exclusion conditions, but the custom-vs-prebuilt distinction is strong enough for an agent to route correctly.

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