Skip to main content
Glama
get-mcp-ads

Google Ads by Get MCP Ads

google ads validate query

google_ads_validate_query
Read-onlyIdempotent

Validate metric, dimension, and resource compatibility before running a Google Ads query, including segment restrictions and resource availability, to prevent invalid query execution.

Instructions

Validate metric/dimension/resource compatibility BEFORE executing a query. Checks segment restrictions and resource availability.

Input Schema

NameRequiredDescriptionDefault
metricsYesMetric keys to validate
resourceNoNative Google Ads resource from which the GAQL query selects rows.campaign
dimensionsNoDimension keys to validate

Output Schema

NameRequiredDescriptionDefault
resultYesOriginal tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.1.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / properties / result / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {},
      -    "type": "object"
      -  },
      -  {
      -    "items": {},
      -    "type": "array"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  {
      +    "items": {},
      +    "type": "array"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observedv2.0.1

TDQS

A4/5.0
Behavior4/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, non-destructive operation. The description adds useful behavioral context by specifying what is validated: metric/dimension/resource compatibility, segment restrictions, and resource availability.

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?

The description is two sentences, front-loaded with the primary action and timing, and contains no filler. Every phrase contributes to understanding what the tool validates.

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 full schema coverage, output schema present, and annotations covering safety, the description is sufficient for an agent to understand when and why to call this tool. It could be slightly stronger by explicitly routing agents from google_ads_run_gaql to this validator before execution.

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 the parameters are already documented. The description adds the idea that metrics, dimensions, and resource are checked for mutual compatibility, but it does not go beyond the schema with syntax, format, or edge-case details.

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 and resource: validate metric/dimension/resource compatibility before executing a query. It clearly distinguishes validation from execution, though it does not explicitly name the sibling execution tool google_ads_run_gaql.

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 gives a clear usage condition: call this BEFORE executing a query to check compatibility, segment restrictions, and resource availability. It does not explicitly name alternatives or exclusions, but the intended timing is unambiguous.

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