/databrill-core:dbl-metrics-sqpfrom databrill-core
Analyze Search Query Performance — our impressions/clicks/cart adds/purchases vs the whole-market totals (impression/click/cart-add/purchase share), and the top search queries. Use when the user asks about SQP, search query performance, impression share, click share, market share on keywords, or which search terms drive the category.
Ships in databrill-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch SQP from the core MCP server's loadSqp tool. SQP
reports, per search query and ASIN, our counts and the whole-market totals — so
a share is ours ÷ market.
On user- and organization-scoped connectors, call listWorkspaces and pass the
selected wsid. A workspace-scoped connector supplies it in the URL. Never
infer a target from stores or a listWorkspaces result with one entry; keep
search shares separate by account and marketplace.
loadSqp parameters:
stores (required), when (required) — as for the other tools.timeUnit — WEEK (default) or MONTH. (SQP is pre-aggregated by Amazon to
these periods — this selects rows, it does not re-bucket.)products — optional family / ASIN filter (scopes "our" counts).keywordLimit — top-N queries by market impressions, a whole number from 1
to 200 (default 25); a value outside that range is an error.Example: "what's our impression share in the US and the top terms" →
loadSqp({ stores: "US", when: "P8W" }).
Both arrays carry the same fields: our and the market's impressions, clicks,
cart adds and purchases (ourImpressions/marketImpressions,
ourClicks/marketClicks, ourCartAdds/marketCartAdds,
ourPurchases/marketPurchases), and our share of each (impressionShare,
clickShare, cartAddShare, purchaseShare).
A share is a fraction, not a percentage: 0.12 is 12%, and 0.0000567 is
0.00567%. Multiply by 100 to show a percentage. Shares are rounded to 4
significant figures. A share is null when the market count is 0: show it as
unavailable, never as 0%.
periods[] — per marketplace per period. Rising market impressions with a
flat impression share means our impressions are growing at the same
proportional rate as the market.keywords[] — top queries. Low impression share on a high-marketImpressions
term is an acquisition opportunity.Cart adds sit between clicks and purchases, so when click share is healthy and purchase share is weak, cart-add share says which of the two steps loses it.
Note: SQP only emits ASIN-keyword rows above an impression threshold, and lags; missing rows can themselves be a low-velocity signal.
Work at family level. An individual ASIN can get too few purchases on a search
term in a week to conclude anything: pass a family to products, or join
brand_config_amazon_asin in SQL
(${CLAUDE_PLUGIN_ROOT}/docs/product-hierarchy.md).
Read ${CLAUDE_PLUGIN_ROOT}/docs/sqp-data-shape.md before writing this SQL —
two traps produce confidently wrong numbers:
total* figures are the same market number copied onto
every one of our ASIN rows. Summing them inflates the market by however many
of our ASINs appeared on the term. Take MAX within (search query, period),
then sum across periods; our own asin* counts are summed normally.totalClickRate is totalClickCount ÷ searchQueryVolume, not impressions, so it reads far above the real market
CTR. Compute market CTR as totalClickCount ÷ totalQueryImpressionCount
yourself, cast to numeric (the counts are integers).Source: amzreport_SEARCH_QUERY_PERFORMANCE (timeUnit, merchantId,
marketplaceId, asin, searchQuery, dateFirst, dateLast,
searchQueryVolume, and one integer column per count: asinImpressionCount,
totalQueryImpressionCount, asinClickCount, totalClickCount and so on;
sqp-data-shape.md lists them with the formulas for the shares). Queries
must filter merchantId, marketplaceId, timeUnit and a bounded dateFirst
range together or they time out — the index leads with merchantId.
loadSqp returns no prices. The raw table's median price columns carry our
median price and the market's for each search term, in the marketplace's
default currency (asinMedianClickPrice vs totalMedianClickPrice, and the
same for cart adds and purchases). When click share is healthy but purchase
share is weak, query that pair first.
For the declared columns and types of any Amazon table, read
${CLAUDE_PLUGIN_ROOT}/docs/schema/amazon/index.tsv and then that table's
.yaml beside it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub databrill/databrill-core-agent-plugin --plugin databrill-core19 skills in this plugin
/dbl-ask-inventory-pacingRecommend how advertising should respond to inventory — pause, throttle, hold, or ramp spend based on each product's runway. Use when the user asks "should we pause ads before the stockout", "we're low on stock, what about ads", "should we cut spend to stretch inventory", "we restocked — ramp back up?", "how do we sell down overstock", "long-term storage fee risk", or wants an inventory-driven ad pacing decision./dbl-ask-sales-dropDiagnose why a store's sales dropped — decompose the change into traffic, conversion, and price, and flag ad-channel and ad-efficiency causes. Use when the user asks "why did sales drop / fall / decline", "sales are down", "revenue dropped", "why did orders fall", "what happened to sales (week-over-week)", or wants a sales-decrease diagnosis for a marketplace./dbl-Other plugins' skills for the same job