Skip to main content
Glama

get_search_terms_report

Retrieve the search terms that triggered your ads, sorted by spend, with the full report saved to CSV, so you can identify wasted spend and top-performing queries.

Instructions

Get search terms that triggered your ads, sorted by spend (highest first). Saves full report to CSV, returns summary + top spenders.

Note: Top rows returned inline may contain actual user search queries, which can include personally identifiable information (PII). Handle with care.

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

Input Schema

NameRequiredDescriptionDefault
date_rangeNoDate range: LAST_7_DAYS, LAST_30_DAYS, etc.LAST_30_DAYS
campaign_idNoFilter to a specific campaign ID
customer_idNoGoogle Ads customer ID (no dashes). Uses active account if not provided.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses a side effect (full report written to CSV), the return shape (summary + top spenders), the sort order, and a PII warning about inline user queries. It stops short of stating permissions, rate limits, or where the CSV is written.

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?

Two short blocks, front-loaded with what the tool does and followed by a clearly separated safety note. Every sentence — including the PII warning — carries actionable information for the agent.

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?

An output schema exists, so the return shape needn't be fully explained, and the description still summarizes it while adding the CSV side effect and PII caution. The only real gap is not saying where the CSV lands or whether it overwrites prior output, which matters for a tool that writes files.

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 date_range, campaign_id, and customer_id are already documented in the schema. The description adds no format or behavior detail about the parameters (e.g. how date_range affects the CSV contents), so the 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?

States a specific verb and resource ('Get search terms that triggered your ads') and adds the sort order (spend, highest first), so the agent knows exactly what data this returns. It doesn't name a sibling report tool to contrast with (e.g. get_keyword_performance), which keeps it from 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 Guidelines3/5

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

The purpose implies when to reach for it — investigating which queries triggered ads — but there is no explicit when-to-use/when-not statement and no alternative tool is named for related reporting needs. Usage is inferable rather than stated.

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

Deploy Server

Other Tools