Search terms
get_search_termsReturns customer search terms that triggered Sponsored Products and Sponsored Brands ads. Defaults to ad_product=auto, searching both SP and SB and returning ad_product on each row; set ad_product when you need one product only. Filter on the aggregated per-term totals with min_spend, min_orders, or zero_orders_only; these run server-side after grouping, so questions like which terms spent money without converting (zero_orders_only=true with min_spend) answer in one bounded call. Recent ~3 days may be incomplete. Does not include bidded target performance or Brand Analytics market volume/share; use get_keyword_performance or get_search_query_performance for those.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows (1-1000, default 20). | |
| offset | No | Pagination offset (0-100000, default 0). Use the returned pagination.next_offset to continue. | |
| keyword | No | Filter by matched keyword text (LIKE match, use % for wildcards). | |
| sort_by | No | Column to sort by | spend |
| end_date | No | Optional. YYYY-MM-DD. Defaults to today if omitted. | |
| min_spend | No | Keep only search-term groups whose total spend in the window is at least this amount. Applied server-side after grouping, so wasted-spend questions stay bounded. | |
| ad_product | No | Sponsored ad product to search. Defaults to auto, which searches both Sponsored Products and Sponsored Brands search-term reports and returns ad_product on each row. | auto |
| match_type | No | Filter by match type or auto-targeting expression type | |
| min_orders | No | Keep only search-term groups with at least this many orders in the window. Applied server-side after grouping. | |
| profile_id | No | Filter by profile ID | |
| sort_order | No | Sort order | desc |
| start_date | No | Optional. YYYY-MM-DD. Defaults to 30 days ago if omitted. | |
| ad_group_id | No | Filter by ad group ID. | |
| campaign_id | No | Filter by campaign ID. With ad_product=auto, searches matching SP and SB search-term reports. | |
| search_term | No | Filter by customer search term (LIKE match, use % for wildcards). | |
| ad_group_name | No | Filter by ad group name (LIKE match, use % for wildcards). | |
| campaign_name | No | Filter by campaign name (LIKE match, use % for wildcards) | |
| include_raw_rows | No | For tabular results, false returns compact rows capped at MCP_TEXT_ROW_PREVIEW_LIMIT (default 10), regardless of limit. Complete-page and custom non-tabular responses may ignore this option; see tool-specific notes. Default true; large full-row responses are capped separately. Freshness fields require include_diagnostics=true in either row mode, where supported. | |
| zero_orders_only | No | Keep only search-term groups with zero orders in the window (spend without conversion). Combine with min_spend to surface meaningful wasted spend in one bounded call. | |
| include_diagnostics | No | True enables expanded freshness diagnostics. Where supported, snapshot_capture_at and snapshot_data_through_date are populated only when include_diagnostics=true, in both compact and full-row modes; values may still be null if source data is unavailable. Default false. Basic empty-result data-window diagnostics are included by default when available. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| evidence | No |