Query metrics over AI answers
query_metricsMeasure which brands AI names or recommends across topics, markets, or engines. Public measures: answers, questions, share_named, share_recommended, listing_share, concentration, share_citing, page_type_mix, hedge_mix, own_site_citations, descriptor_words, causal_funnel (concentration takes no by). Rows include answer and question counts. Shares include a 95% range when available. For cited pages use search_cited_pages. Free. More arguments: resolve_ids {"kinds":["argument"],"q":["query_metrics"]}.
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": "query_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | up to 3 of brand, topic, market, question, engine, surface_class, place, country, day, week, month, site, page, page_type, search_query, descriptor, claim, axis, versus_brand, or facet:<key> | |
| sort | No | a measure or a by dimension; "<name> asc" or "<name> desc" | |
| limit | No | default 25; the token cap wins | |
| brands | No | with by brand: only these brands' rows, against each other in the same answers (in place of the most named) | |
| cursor | No | ||
| filter | No | which answers count; window is a separate argument, not part of filter | |
| window | No | default the last 28 days; "last" or from/to | |
| compare | No | prior: the window of equal length before, with significance; none: no comparison. Write the value bare, compare: prior, with no quotes inside the string | |
| explain | No | false: omit data.note, context.measures, and verbose cite attribution (keeps scope, caveats, dataChanges, window). change (with subject, a share and compare prior): explain move via sameQuestions vs questionMix | |
| history | No | answers past 90 days, $0.001 each once: auto (default) a sample worth up to a quarter of the month's budget, at most $5; all, every answer within the budget; free, none, with each sample's cost | |
| subject | No | brd_ id the shares are about; or group by brand. With no filter it reads the brand's own markets (up to three) pooled, named in context.marketsRead: pass filter.market for one market's number | |
| measures | No | required: what to count | |
| allBrands | No | with by brand: rank every brand named, not the 50 named most (signed in) | |
| topPerGroup | No | with two dimensions in by: the first N rows within each value of the first |