Skip to main content
Glama

Metrinel

Query Google Ads (GAQL)

ads_query
Read-only

Run a read-only GAQL query against one Google Ads account.

Covers any report: campaigns, ad groups, ads, keywords, search terms, assets, conversions, budgets, change history. Monetary fields ending in _micros are in millionths of the account currency (divide by 1,000,000). Use ads_list_fields to discover the fields of a resource. Columns come back in camelCase (e.g. metrics.costMicros).

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return.
queryYesGAQL query, e.g. SELECT campaign.name, metrics.clicks, metrics.cost_micros FROM campaign WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.cost_micros DESC
customer_idYesGoogle Ads account id, 10 digits (dashes allowed).
login_customer_idNoManager account id, when the account is accessed through an MCC.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: `_micros` monetary fields must be divided by 1,000,000 and returned columns are camelCase (`metrics.costMicros`), both of which would otherwise cause misreads of results. It omits pagination/row-cap behavior, though `limit` is in the schema.

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?

The lead sentence front-loads the action and scope, and the two formatting rules follow immediately. The mid-sentence list of report types is long but earns its place by setting expectations about coverage; no sentence is pure filler.

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?

With an output schema present, the definition needn't document return shapes, yet it adds the unit and casing conventions an agent needs to interpret results correctly. Combined with 100% schema coverage and clear annotations, an agent has enough to invoke this correctly; only edge details like row-limit truncation behavior are unstated.

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% and each of the four parameters is documented inline, including an example GAQL query and the MCC note for `login_customer_id`, so the baseline of 3 applies. The description's contribution is mostly about interpreting output values (`_micros`, camelCase) rather than adding meaning to the parameters themselves.

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?

The description opens with a specific verb and resource ('Run a read-only GAQL query against one Google Ads account') and then enumerates the report surface it covers (campaigns, keywords, search terms, conversions, budgets, change history). It also points to the sibling `ads_list_fields`, making it distinguishable from the schema-introspection tool without opening either definition.

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?

It states the operating context (one account, read-only, any report) and gives an explicit routing rule: use `ads_list_fields` to discover fields of a resource. It does not name a case where this tool is the wrong choice versus other siblings (e.g., why not ga4_run_report), but the Google Ads scoping makes the alternative obvious.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources