Skip to main content
Glama

SEO GSC Wizard MCP

Google Ads product matrix (heroes, villains, zombies)

get_product_matrix
Read-only

Use this when the user asks which products earn their ad spend, which to exclude or bid down, which never get shown, or for a hero / villain / zombie split of a Shopping or Performance Max catalog: every advertised product placed in one bucket (hero, sidekick, villain, zombie, below_target, no_conversions_yet) by its ROAS against the cost-weighted target ROAS of the campaigns that served it, judged on the days whose conversions are in (the last days of a recent range are left out of the verdict, see judgement), plus the Merchant Center products with no paid impression (no_impressions), with revenue concentration, price bands and splits by brand, category and product type. Uses the property's Google Ads thresholds; minClicks, farBelow and heroShare inputs override them for one call. ROAS is a ratio (4 = 400%); Google Ads money is in currency, Merchant Center prices in priceCurrency (moneyCurrencies says both). Read-only; it never changes the Ads account. 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_product_matrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoProducts to return, by cost (default 50).
bucketNoOnly products in this bucket. "no_impressions" lists catalog products with no paid impression.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".
groupByNoAlso return the bucket counts per brand, category, product type or price band (top 50 by cost).none
siteUrlYesThe property URL as returned by list_sites.
farBelowNoROAS under this fraction of the target is a villain. Default: the property's matrix.farBelow (0.5 suggested). A value here is a what-if for this call.
heroShareNoHeroes bring this share of conversion value. Default: the property's matrix.heroShare (0.8 suggested). A value here is a what-if for this call.
minClicksNoClicks a product needs before it can be judged villain or below_target. Default: the clicks for two conversions at the account's Shopping conversion rate, between the property's matrix.minClicksFloor and matrix.minClicksCeiling (20 and 300 suggested). A value here is a what-if for this call.
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".
targetRoasNoFallback target ROAS (ratio, 4 = 400%) for campaigns without one. Default: the account's actual ROAS over the range.

Output Schema

NameRequiredDescriptionDefault
gmcNo
hintNo
rowsNo
rangeNo
rulesNo
groupsNo
reasonNo
thenByNo
totalsNo
bucketsNo
catalogNo
hasMoreNo
listKeyNoName of the top-level field that holds the rows sortedBy describes.
siteUrlNo
accountsNo
coverageNo
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
judgedOnNo'value' or 'conversions': what the products were judged on
nextStepNo
orderingNo
rowCountNo
sortedByNo
judgementNo
sortOrderNo
thenOrderNo
truncatedNoThe product read hit its cap; products past it are not judged.
methodNoteNo
priceBandsNo
thresholdsNo
emptyBecauseNo
methodLimitsNo
concentrationNo
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
priceCurrencyNoCurrency of `price` and `priceBands` (Merchant Center prices, the most common one); not converted.
productsTotalNo
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.
campaignTargetsNo
currencyWarningNoWhy money could not be converted, when currencyMixed is true.
moneyCurrenciesNo
fallbackProductsNo
settingsSnapshotNo
settingsAvailableNo
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. Changed14 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)."
      +}
    • 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"
      +}
    • 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."
      +}
    • addedOutput schema / properties / judgedOn
      Added value: +{
      +  "$ref": "#/properties/siteUrl",
      +  "description": "'value' or 'conversions': what the products were judged on"
      +}
    • addedOutput schema / properties / moneyCurrencies
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "properties": {
      +        "ads": {
      +          "$ref": "#/properties/siteUrl",
      +          "description": "Currency of every Google Ads figure (cost, conversion value; ROAS is a ratio of the two): the envelope `currency`."
      +        },
      +        "note": {
      +          "$ref": "#/properties/siteUrl",
      +          "description": "Set when the two differ, are not known, or the catalog holds several price currencies: prices and Ads money are not converted into each other."
      +        },
      +        "prices": {
      +          "$ref": "#/properties/siteUrl",
      +          "description": "Currency of the Merchant Center prices: `priceCurrency`."
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / priceCurrency / description
      Added value: +"Currency of `price` and `priceBands` (Merchant Center prices, the most common one); not converted."
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnlyHint/destructiveHint annotations, the description discloses material behavior: the verdict excludes recent days whose conversions are unsettled (data lags ~2-3 days), threshold defaults come from property-level matrix settings and can be overridden per call, ROAS is expressed as a ratio, and the two currencies (Ads `currency` vs. Merchant Center `priceCurrency`) are distinguished. The explicit "read-only; it never changes the Ads account" restates the annotation but adds no harm.

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 use-case trigger is front-loaded and each subsequent clause carries real information (buckets, judgement window, overrides, currencies, date defaults). It is a single very dense paragraph, however, and the "you do not need to know today's date" reassurance is duplicated from the schema, slightly inflating length.

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 10-parameter analytical tool with an output schema, the description covers everything the schema cannot: when the tool is appropriate, what the buckets mean, the settled-conversion caveat, threshold defaulting and override semantics, and the dual-currency convention. Return values are correctly left to the output schema.

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 description coverage is 100%, so the baseline is 3; the description still earns above baseline by explaining that minClicks, farBelow and heroShare default to property thresholds and act as single-call what-ifs, and by fixing the ROAS ratio convention (4 = 400%) that governs targetRoas and farBelow. Date-range defaulting is also restated in behavioral terms (omit both to analyze the last 28 settled days).

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 names a specific resource (every advertised Shopping/Performance Max product plus Merchant Center products with no paid impression) and a specific operation (placing each into one of seven ROAS-derived buckets against a cost-weighted target). The hero/villain/zombie framing is distinctive enough that an agent can recognize it, but no sibling tool is named, so differentiation from get_google_ads_shopping is left implicit.

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?

"Use this when the user asks which products earn their ad spend, which to exclude or bid down, which never get shown, or for a hero / villain / zombie split" gives concrete trigger conditions rather than a generic purpose. There are no explicit exclusions or named alternative tools, so an agent must infer what to call when the user wants raw per-product ad metrics instead of a bucketed verdict.

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