Skip to main content
Glama
Google Ads MCP Server

Google Ads MCP Server

run_gaql

Executes arbitrary GAQL queries against a Google Ads account to pull reports, audits, and diagnostics on campaigns, keywords, search terms, and change events. Start broad, then filter freely.

Instructions

Изпълнява произволна GAQL заявка срещу един акаунт. Това е основният read инструмент — покрива всякакви отчети, одити и диагностика (campaign, ad_group, keyword_view, search_term_view, asset_group, change_event, geographic_view и т.н.). Хвърляй широка мрежа с първата заявка; филтрирането после е безплатно.

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": "run_gaql"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesGAQL заявката.
customerIdYesGoogle Ads customer ID (с или без тирета), напр. 123-456-7890 или 1234567890.
loginCustomerIdNoMCC за хедъра login-customer-id, ако е различен от конфигурирания. За акаунт ИЗВЪН конфигурираното MCC подай самия customerId и тук.

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 does carry the key disclosure that this is a read-only tool ("основният read инструмент") and that it targets a single account. However it says nothing about result limits, pagination, row caps, or error behavior — significant for a free-form query tool where the author even encourages broad first queries. It also doesn't warn that query cost/limits exist.

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?

Three sentences, front-loaded with purpose, then scope examples, then a usage heuristic. Nothing is redundant and every sentence adds information.

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?

For a query-execution tool with a fully documented 3-parameter schema and no output schema, the description covers purpose, scope, and usage strategy well. The remaining gap is operational: no mention of result size limits or pagination, which matters given the "cast a wide net" recommendation.

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 100%, with customerId and loginCustomerId documented including the MCC and outside-MCC cases, so the baseline is 3. The description adds no extra meaning about the query parameter beyond "arbitrary GAQL query" — no syntax guidance, no required fields like segments/date ranges.

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 ("Изпълнява произволна GAQL заявка") plus scope ("срещу един акаунт"), which implicitly separates it from run_gaql_multi. The enumeration of covered resource types (campaign, ad_group, keyword_view, search_term_view, change_event, geographic_view) makes the tool's reach unambiguous.

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?

Explicitly frames itself as "основният read инструмент" for reports, audits, and diagnostics, and gives tactical advice (start with a broad query, filter later since filtering is free). It stops short of naming an alternative or saying when NOT to use it (e.g. account_overview or run_gaql_multi for multi-account cases).

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