Merchant Center report query (MCQL)
query_gmc_reportUse this when the user needs a Merchant Center field, filter or ordering the fixed Merchant Center tools do not expose (a product_view gtin, offers ordered by impressions). Runs a raw Merchant Center Query Language (MCQL) query against the reports of the Google Merchant Center account linked to a GSC Wizard site. MCQL is SQL-like: SELECT offer_id, title, clicks, impressions FROM product_performance_view WHERE date BETWEEN '2026-09-01' AND '2026-09-30' AND marketing_method = 'ORGANIC' ORDER BY clicks DESC. The views are product_performance_view, non_product_performance_view, product_view, price_competitiveness_product_view, price_insights_product_view, best_sellers_product_cluster_view, best_sellers_brand_view, competitive_visibility_competitor_view, competitive_visibility_top_merchant_view, competitive_visibility_benchmark_view. The performance and competitive visibility views require a date condition in WHERE; product_view and the two price views are dateless snapshots. Read only (MCQL cannot change anything) and always against the linked account. Not for questions a fixed tool answers: use get_organic_shopping_performance, get_product_listing_status, get_gmc_pricing_insights, get_gmc_best_sellers or get_gmc_competitors, which return normalised units. Rows come back raw: int64 as strings, money as amountMicros, rates as 0-1 fractions (see unitsNote), in the order of the query's ORDER BY (declared as sortedBy / sortOrder / thenBy in camelCase when it lists plain fields), in no defined order without one. At most limit rows (default 200, max 1000); hasMore says when the query matched more. An invalid query fails with bad_request and Google's masked diagnostic. Returns a notConfigured result (not an error) when Merchant Center is not connected or no Merchant Center account is linked to the site in the GSC Wizard app.
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>",
"query": "<query>"
},
"name": "query_gmc_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows to return (default 200, max 1000). | |
| query | Yes | The MCQL query: SELECT <fields> FROM <view> [WHERE ...] [ORDER BY ...] [LIMIT n]. Field names are snake_case (offer_id, click_through_rate). String and date literals use single quotes. | |
| siteUrl | Yes | The property URL as returned by list_sites (e.g. "sc-domain:example.com"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| rows | No | ||
| view | No | ||
| query | No | ||
| range | No | ||
| reason | No | ||
| thenBy | No | ||
| account | No | ||
| hasMore | No | ||
| listKey | No | Name of the top-level field that holds the rows sortedBy describes. | |
| siteUrl | No | ||
| cachedAt | No | ||
| nextStep | No | ||
| ordering | No | ||
| rowCount | No | ||
| sortedBy | No | ||
| emptyNote | No | ||
| resultKey | No | ||
| sortOrder | No | ||
| thenOrder | No | ||
| truncated | No | ||
| unitsNote | No | ||
| dataSource | No | ||
| emptyBecause | No | ||
| gmcAccountId | No | ||
| methodLimits | No | ||
| notConfigured | No | ||
| truncationNote | No | ||
| truncationReason | No | ||
| reportUnavailable | No |