Skip to main content
Glama

Parallel AI for Google Ads

Google Ads API v26 GAQL Query Builder & Validator

validate_google_ads_gaql_query
Read-onlyIdempotent

Build and validate Google Ads Query Language (GAQL) queries against the Google Ads API v26 field catalog across campaign, search_term_view, asset_group, shopping_performance_view, and change_event resources.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_google_ads_gaql_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
gaqlNoRaw GAQL string to parse, format, and validate against the v26 catalog (e.g. 'SELECT campaign.name, metrics.cost_micros FROM campaign WHERE segments.date DURING LAST_30_DAYS').
limitNo
whereNoWHERE filter conditions when building a structured query.
selectNoFields to select when building a structured query.
orderByNo
resourceNoStructured GAQL resource (used when 'gaql' is omitted).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

The annotations already establish that this is a safe, read-only, idempotent operation. The description adds useful scope by naming the v26 field catalog and the supported resource types, but it does not disclose what validation returns, how errors are surfaced, or how the two input modes behave.

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 description is a single front-loaded sentence with no filler, and the resource list is relevant. It is dense but every clause contributes to scope, with only minor room for tighter phrasing.

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

Completeness2/5

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

This is a six-parameter builder/validator with two input modes and no output schema, yet the description does not explain what the tool returns or how validation results are presented. For a tool of this complexity, the one-sentence description leaves out behavior an agent would need to select and use it confidently.

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 67%, with the core parameters documented in the schema, so the baseline expectation is moderate. The description adds no parameter-level meaning beyond listing supported resources; it does not explain limit, orderBy, or how the raw gaql input interacts with structured select/where/resource inputs.

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?

The description states a specific verb pair, 'build and validate,' and a specific resource, GAQL queries against the v26 catalog. It even enumerates the supported resources, making the tool easy to identify. It does not explicitly differentiate itself from sibling tools, so it falls 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 Guidelines2/5

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

The description explains what the tool does but gives no guidance on when to use it versus alternatives. It does not mention prerequisites, when to prefer structured parameters over a raw GAQL string, or when another sibling tool would be more appropriate.

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