Skip to main content
Glama

Gads Search

gads_search
Read-onlyIdempotent

Run custom GAQL queries against Google Ads data. Use for advanced analysis, filter by keywords, matching types, or aggregate metrics by custom dimensions.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "SELECT campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_7_DAYS",
      "customer_id": "1234567890"
    },
    "name": "gads_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesGAQL query string (e.g., "SELECT campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_7_DAYS")
customer_idYesGoogle Ads customer ID

Output Schema

NameRequiredDescriptionDefault
resultsNoGAQL query results

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "results": {
      +      "description": "GAQL query results",
      +      "items": {
      +        "description": "Result row matching the GAQL query selection",
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "customer_id": "1234567890",
      +    "query": "SELECT campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_7_DAYS"
      +  },
      +  {
      +    "customer_id": "1234567890",
      +    "query": "SELECT ad_group.name, metrics.impressions, metrics.cost_micros FROM ad_group WHERE campaign.id = 9876543210"
      +  }
      +]
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety and idempotency are covered structurally. The description adds capability framing (keyword filtering, match types, custom-dimension aggregation) but says nothing about query cost, row limits, pagination, or account permissions — the behavioral facts a GAQL tool actually needs.

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?

Two tight sentences with the core action front-loaded and the use-case qualifier second. No filler, though the second sentence is a loose list of query capabilities rather than routing information.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the query field carries an example. What is missing is the operational envelope: whether results are capped or paginated, what happens on invalid GAQL, and whether customer_id expects a dashed or undashed ID. For a low-parameter but open-ended query tool, that leaves real gaps.

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 includes two worked query examples, so both parameters are already fully documented. The description reinforces the kinds of clauses a query can contain but adds no syntax, format, or constraint detail beyond the schema. Baseline 3 applies.

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?

Specific verb+resource: 'Run custom GAQL queries against Google Ads data.' This clearly distinguishes a free-form query tool from the listed sibling family (gads_list_campaigns, gads_campaign_metrics, gads_get_campaign), which do fixed lookups. It stops short of naming an alternative explicitly, so it is clear but not differentiated by direct reference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

'Use for advanced analysis' implies the tool is for cases the predefined report tools don't cover, but the guidance is implied rather than stated. There is no explicit when-not condition and no mention of the sibling tools that would handle simple lookups.

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.