Skip to main content
Glama

SEO GSC Wizard MCP

Google Ads search terms and n-grams

get_google_ads_search_terms
Read-only

Use this when the user asks what people searched before their Google Ads showed, which search terms waste money, or which words convert. Returns the search terms of the linked Google Ads accounts across Search, Shopping and Performance Max (filter: all, non-converting with spend, converting), or with ngram 1, 2 or 3 the n-gram mining: every term's metrics summed into each distinct word or word sequence it contains, which finds negative keyword candidates across many terms at once. Includes how much of the campaign cost the visible terms explain. Money is in currency (see currencyMixed); ctr and conversionRate are 0-100 percentages. For the same terms next to organic rankings use get_paid_vs_organic. Date range is optional: omit startDate/endDate to analyze the last 28 settled days (data lags ~2-3 days).

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": {
      "siteUrl": "<siteUrl>"
    },
    "name": "get_google_ads_search_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows to return, by cost (default 50).
ngramNoReturn n-grams of this length instead of whole terms (1 = single words).
filterNoTerms only: "non_converting" = spend and zero conversions (negative keyword candidates).all
endDateNoOptional. Window end as YYYY-MM-DD (e.g. 2026-05-31). You do NOT need to know today's date or the latest available date: omit this and the server uses the latest settled Search Console date (data lags ~2-3 days behind today). Never pass null or the string "null".
siteUrlYesThe property URL as returned by list_sites.
containsNoOnly terms or n-grams containing this text (case-insensitive).
startDateNoOptional. Window start as YYYY-MM-DD (e.g. 2026-05-03). You do NOT need to know today's date. Omit BOTH startDate and endDate to analyze the last 28 settled days automatically (Search Console data lags ~2-3 days). Never pass null or the string "null".

Output Schema

NameRequiredDescriptionDefault
hintNo
modeNo
rowsNo
rangeNo
reasonNo
thenByNo
totalsNo
hasMoreNo
listKeyNoName of the top-level field that holds the rows sortedBy describes.
siteUrlNo
accountsNo
currencyNoThe currency every money figure is in: the property's report currency when accounts in other currencies were converted (see currencyConversion), the accounts' one currency otherwise; null when money mixes currencies (see currencyMixed) or no currency is known yet.
dataNoteNo
nextStepNo
orderingNo
rowCountNo
sortedByNo
sortOrderNo
thenOrderNo
coveragePctNo
campaignCostNo
coverageNoteNo
emptyBecauseNo
methodLimitsNo
currencyMixedNoTrue when the linked accounts use different currencies and money could not be converted: totals and rows then add amounts in different currencies and must not be shown as one currency (compare per account instead). Null when the tool returns no money.
notConfiguredNo
accessLostNoteNoThe sentence about hiddenAccounts, also in dataNote; null when none is hidden.
hiddenAccountsNoLinked accounts left out of every figure because Google has refused the login that linked them for more than 7 days (nothing is deleted; link again with a Google account that has access, or unlink).
historyGapNoteNoSet when a month inside the window is missing from an account's stored history because Google refused it: figures for that period are incomplete, not zero. Also in dataNote.
currencyWarningNoWhy money could not be converted, when currencyMixed is true.
nonConvertingCostNo
currencyConversionNoSet when money of accounts in another currency was converted to the report currency; null otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • addedOutput schema / properties / accessLostNote
      Added value: +{
      +  "$ref": "#/properties/currency",
      +  "description": "The sentence about hiddenAccounts, also in dataNote; null when none is hidden."
      +}
    • addedOutput schema / properties / accounts / items / properties / accessLostAt
      Added value: +{
      +  "$ref": "#/properties/currency",
      +  "description": "Since when Google refuses the login that linked this account (shown for 7 days, then hidden)."
      +}
    • changedOutput schema / properties / accounts / items / properties / currencyCode / $ref
      Previous value: -"#/properties/siteUrl"New value: +"#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
    • changedOutput schema / properties / accounts / items / properties / customerId / $ref
      Previous value: -"#/properties/siteUrl"New value: +"#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
    • changedOutput schema / properties / accounts / items / properties / historyComplete / $ref
      Previous value: -"#/properties/notConfigured"New value: +"#/properties/currencyMixed"
    • addedOutput schema / properties / accounts / items / properties / historyGaps
      Added value: +{
      +  "description": "Months inside the stored history Google kept refusing: not stored, so figures over them are incomplete.",
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "end": {
      +        "$ref": "#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
      +      },
      +      "start": {
      +        "$ref": "#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / accounts / items / properties / importedFrom / $ref
      Previous value: -"#/properties/siteUrl"New value: +"#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
    • changedOutput schema / properties / accounts / items / properties / lastError / $ref
      Previous value: -"#/properties/siteUrl"New value: +"#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
    • changedOutput schema / properties / accounts / items / properties / lastSyncAt / $ref
      Previous value: -"#/properties/siteUrl"New value: +"#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
    • changedOutput schema / properties / accounts / items / properties / name / $ref
      Previous value: -"#/properties/siteUrl"New value: +"#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
    • changedOutput schema / properties / accounts / items / properties / status / $ref
      Previous value: -"#/properties/siteUrl"New value: +"#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
    • changedOutput schema / properties / accounts / items / properties / timeZone / $ref
      Previous value: -"#/properties/siteUrl"New value: +"#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
    • removedOutput schema / properties / currency / $ref
      Removed value: -"#/properties/siteUrl"
    • addedOutput schema / properties / currency / description
      Added value: +"The currency every money figure is in: the property's report currency when accounts in other currencies were converted (see currencyConversion), the accounts' one currency otherwise; null when money mixes currencies (see currencyMixed) or no currency is known yet."
    • addedOutput schema / properties / currency / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / currencyConversion
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "properties": {
      +        "chosenBy": {
      +          "$ref": "#/properties/currency",
      +          "description": "\"property_setting\" (set in the app) or \"most_accounts\" (the currency most linked accounts use)."
      +        },
      +        "convertedAccounts": {
      +          "description": "The accounts whose money was converted to reportCurrency, with their own currency.",
      +          "items": {
      +            "additionalProperties": true,
      +            "properties": {
      +              "customerId": {
      +                "$ref": "#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
      +              },
      +              "fromCurrency": {
      +                "$ref": "#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "rateSource": {
      +          "$ref": "#/properties/currency",
      +          "description": "Where the rates come from: the ECB euro reference rates, daily figures at the rate of their own day, settings snapshots (budgets, targets) at the newest rate."
      +        },
      +        "ratesThrough": {
      +          "$ref": "#/properties/currency",
      +          "description": "Newest day with a published rate; later days use that rate."
      +        },
      +        "reportCurrency": {
      +          "$ref": "#/properties/currency"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Set when money of accounts in another currency was converted to the report currency; null otherwise."
      +}
    • addedOutput schema / properties / currencyMixed
      Added value: +{
      +  "description": "True when the linked accounts use different currencies and money could not be converted: totals and rows then add amounts in different currencies and must not be shown as one currency (compare per account instead). Null when the tool returns no money.",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / currencyWarning
      Added value: +{
      +  "$ref": "#/properties/currency",
      +  "description": "Why money could not be converted, when currencyMixed is true."
      +}
    • addedOutput schema / properties / hiddenAccounts
      Added value: +{
      +  "description": "Linked accounts left out of every figure because Google has refused the login that linked them for more than 7 days (nothing is deleted; link again with a Google account that has access, or unlink).",
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "accessLostAt": {
      +        "$ref": "#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
      +      },
      +      "customerId": {
      +        "$ref": "#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
      +      },
      +      "name": {
      +        "$ref": "#/properties/currencyConversion/anyOf/0/properties/reportCurrency"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / historyGapNote
      Added value: +{
      +  "$ref": "#/properties/currency",
      +  "description": "Set when a month inside the window is missing from an account's stored history because Google refused it: figures for that period are incomplete, not zero. Also in dataNote."
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description adds substantive behavior: data lags ~2-3 days, omitting dates analyzes the last 28 settled days, money is denominated in `currency` with a cross-reference to currencyMixed, and ctr/conversionRate are 0-100 percentages. It also discloses a non-obvious output element — how much of campaign cost the visible terms explain — which affects interpretation of results.

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?

Front-loaded with the user-question triggers before the mechanics, and the n-gram mode is placed immediately after the default mode it replaces. It is a dense single block, so the money/percentage/currency details are slightly buried mid-paragraph, but almost no sentence is filler.

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

Completeness5/5

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

For a 7-parameter read tool with an output schema, it covers everything an agent needs to call it correctly: default date window, lag, filter meanings, n-gram behavior, currency units, and the sibling handoff. Return-value details are rightly left to the output schema rather than duplicated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description genuinely extends meaning: it explains that `ngram` sums each term's metrics into every distinct word/sequence it contains (the payoff being negative-keyword candidates across many terms), and that `filter=non_converting` means spend with zero conversions. The date-omission default and lag note also add context the schema states only tersely.

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?

States a specific verb and resource combination (returns Google Ads search terms), plus a distinct secondary mode (n-gram mining) with explicit semantics for ngram=1/2/3. It also delineates which campaign types are covered (Search, Shopping, Performance Max), which no sibling name would imply.

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

Usage Guidelines5/5

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

Opens with concrete user-intent triggers: "what people searched before their Google Ads showed," "which search terms waste money," "which words convert." It also routes the agent to a named alternative for the adjacent case (get_paid_vs_organic for organic rankings), so the boundary is explicit rather than inferred.

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