/sparkx-ai-mcp:sparkx-manage-keyword-listfrom sparkx-ai-mcp
Creates, reads, updates, and deletes reusable keyword lists (corpus) for Amazon advertising. Handles list metadata, keywords, product links, visibility, and two-phase deletion.
Ships in sparkx-ai-mcp. 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.
Read when SKILL.md points to them.
A keyword list is a named bag of keyword texts bound to one or more shops. It carries no match type and no brand flag - those are decided at the place the list is referenced. The same list can be a branded list on one managed group and a harvest-exclusion list on another.
Four tools, all behind the amazon_sa_keywords_list:write scope - including the read one.
A user without that scope sees none of them, so "I cannot find the keyword list tools" usually
means the token lacks the scope, not that the feature is off.
| Tool | Does |
|---|---|
get_keyword_list | List mode (search + metadata + counts) or detail mode (one list, optionally with products / linked AI groups / keywords) |
create_keyword_list | New list with name, shops, visibility, optional initial keywords and products |
update_keyword_list | One target per call: keywords, products or visibility |
delete_keyword_list | 1-20 lists, always two-phase |
Call get_user_authorized_context first. One unauthorized profile id rejects the whole
request on every tool here.
Nothing in this skill takes keyword text as an identifier - everything takes keywordListId.
So unless the user handed you an id, start with get_keyword_list in list mode and let them
pick. Two filters make that cheap: nameContains (with nameExact) and containsKeyword
(with containsKeywordExact) - the latter answers "which list has this word in it".
List mode does not return keywords, only metadata and counts. To see words, call detail
mode with include: ['keywords']; page / pageSize then page the keywords, and list-only
filters are ignored. include also takes products (first 100, meta.truncated says whether
more exist) and linkedAiGroups (which groups use the list, with usage flags).
Rule-based (auto-updating) lists are invisible here: excluded from list mode, rejected in detail mode, rejected by every write. If a user insists a list exists and you cannot find it, say it may be rule-based and has to be managed in the platform - do not tell them it is gone.
otherProfileCount is the number of bound shops outside the profiles you passed. A non-zero
value means the list reaches further than what you are showing - say so before the user edits
or deletes it.
Required: name and 1-50 shops. Everything else is optional.
PRIVATE. The other values are PUBLIC_READ and
PUBLIC_COLLABORATIVE.null and -1 are dropped and
reported in warnings.{profileId, product}): the product dimension is
asin (default), parentAsin or sku, fixed at creation and not changeable afterwards.
Pick it deliberately.Creation executes immediately - there is no confirmation step, so show the user the name, shops and keyword count before you call it, not after.
Renaming a list and changing its shops are not available yet. If the user wants either, say so rather than offering a delete-and-recreate - that loses the links to any managed group or campaign using it.
target is keywords, products or visibility, and fields belonging to another target
are rejected rather than ignored. The id count differs per target - this is the easiest thing
to get wrong:
target | action | keywordListIds | Other |
|---|---|---|---|
keywords | add / remove required | 1-10 | keywords, at most 1000 |
products | add / remove required | exactly 1 | 1-50 distinct {profileId, product} |
visibility | omit | 1-20 | visibility |
What each one does to things already in the list:
Shoe is added even when shoe is already there - warn the user before bulk-adding
capitalised variants. A list that would exceed its keyword limit fails while the others
continue.notFound, not as an error.asin and parentAsin lists require 10-character ASINs (uppercase
letters and digits). Products already linked are skipped. Products the recommendation service
silently refuses (no ASIN authorization) come back as dropped - report those, they did
not get linked.notFound; ones still linked afterwards are
notRemoved - also report these, the removal did not take.changed=false. A list used by
an AI group cannot be set to PRIVATE, and only the creator or an admin can change
visibility at all.Every profile id you pass for products must be a shop of that list and authorized for
you, or the whole call is rejected.
status is success or partial_success for keywords and visibility. Only when every list
fails does the call return an error - so a successful envelope with per-list failures inside
is normal. Read results[] per list and report the failures; never summarise a
partial_success as done.
delete_keyword_list takes 1-20 ids and always requires two phases: call without
confirmToken to get a preview, show the preview to the user, wait for an explicit yes, then
repeat the same call with the returned confirmToken.
Deleted lists cannot be restored. Lists in use by an AI group are rejected downstream -
unlink them in sparkx-edit-ai-group first. Results come back per list as DELETED or
REJECTED; a mixed result is normal and must be reported list by list.
Before previewing a delete, read the list with include: ['linkedAiGroups'] and tell the user
what will break. otherProfileCount > 0 means shops outside your view are affected too.
This skill manages the lists. Pointing something at a list lives elsewhere, and the match type is chosen there, not here:
| Use | Where | Field |
|---|---|---|
| Keywords / negatives on a new campaign or ad group | sparkx-create-campaign | keywordLists / negativeKeywordLists on the ad group item |
| Branded / competitor mode on a managed group | sparkx-edit-ai-group | brandedList / competitorList plus their MatchType |
| Harvest and negative-target exclusions on a managed group | sparkx-edit-ai-group | targetHarvestBlackList / negativeTargetBlackList plus their MatchType |
| Keywords on a live campaign from a list | sparkx-edit-ads | fromKeywordList |
A referenced list is 1-10 ids everywhere. Whether it replaces or adds depends on
the place: a managed group's lists are replaced and stay linked; a campaign or ad group expands
or copies the words in once and adds them to what is already there. Never tell a user their
existing keywords will be overwritten by a campaign-side reference. Details in
references/using-lists.md.
linkedAiGroups and otherProfileCount before any edit or
delete.notFound / dropped / notRemoved /
REJECTED explicitly. A partial success is not a success.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sparkxai/sparkxai-mcp --plugin sparkx-ai-mcp23 skills in this plugin
/sparkx-ads-structure-analysisAnalyze how ad spend and efficiency break down across a structural dimension — campaign type (SP/SB/SD), marketplace/site, portfolio, weekday-vs-weekend, hour-of-day, or campaign size tiers (head vs long tail) — and diagnose where spend share and efficiency don't match (over-invested underperformers, under-invested strong performers). Optional sub-scenarios: SP deep-dive (manual vs auto targeting), SB new-to-brand focus. Use when the user asks "我 SP/SB/SD 结构合理吗", "各站点谁强", "SB 新客到底行不行", "工作日和周末哪个好", "structure analysis", "campaign type breakdown". Not for a single-entity trend/anomaly check (use sparkx-weekly-ads-report / sparkx-monthly-ads-report / a lighter ad-hoc analysis skill), product-level diagnosis (use sparkx-product-diagnosis), or search-term diagnosis (use sparkx-search-term-diagnosis)./sparkx-ai-managed-auditAudit AI managed groups (托管组) against a stated success standard: grade every managed campaign 卓越/优秀/良好/一般/差 by the group's objective, pull out the 差 ones, and recommend what to change in the group's configuration — split the group, objective, target ACOS, AI personality, action space, review cadence. Use when the user asks "AI 托管到底有没有效果", "哪些托管组没做好", "给我出份 AI 托管组诊断/评级/审核/POP 报告", "按我们的成功标准给广告活动评级", "AI managed group audit", "grade my managed campaigns". Not for descriptive performance recaps without a grading standard (use sparkx-weekly-ads-report / sparkx-monthly-ads-report), not for ASIN-level or keyword-level diagnosis (use sparkx-product-diagnosis), and never for applying changes (use sparkx-edit-ai-group / sparkx-edit-ads)./sparkx-asin-deep-diveDiagnose one named ASIN or parent ASIN: why sales fell or ACOS rose, where traffic comes from, whether its ad structure is fragmented, and which variants deserve budget. Combine account ad data with SQP / ABA demand and share, limited competitorProduct data and brand peer benchmarks; use the customer's SellerSprite for organic rank and broader category comparisons when available. Use for "这个 ASIN 为什么销售下滑 / ACOS 为什么高" or "哪个子体该留". Read-only recommendations. To find which products need diagnosis first, use sparkx-product-diagnosis; for search-term negatives or harvest decisions use sparkx-search-term-diagnosis. For store-, category- or brand-level SQP analysis use sparkx-sqp-insight./sparkx-category-scorecardCompare advertising performance and available brand peer ranges for one specified Amazon category or a confirmed set of ASINs. For a broad store request, start with the advertised products and propose a scope. Use when the user asks "我们这个类目跟同行比怎么样", "保健品的 ROAS 算好吗", "Collagen 的 ACOS 目标设多少合理", "这个类目表现到底好不好". Read-only; no whole-store category ranking, budget allocation, or advertising edit - 不出预算清单,也不改账户。/sparkx-create-ai-groupCreate a NEW AI managed group (托管组) for Amazon Sponsored ads and place campaigns under it when required. Routes by ad type - SD via create_sd_ai_managed_group (campaigns required); SP/SB via save_sp_sb_ai_managed_group (create mode). Use when the user wants to create / set up / 新建 / 建一个 a managed group, or put campaigns under AI management for the first time, even without the exact words "managed group". When the user isn't sure how to set the group up, recommends a matching platform template (推荐托管组模板) - optional, never forced. This creates the group itself - it is NOT for enabling or editing an existing group (use sparkx-edit-ai-group) or deleting one (use sparkx-delete-ai-group)./sparkx-create-campaignCreate new Amazon Sponsored Products, Sponsored Brands and Sponsored Display campaigns in bulk (`create_sp_sb_campaign`, `create_sd_campaign`), add ad groups to an existing campaign (`create_sp_ad_group`, `create_sb_ad_group`, `create_sd_ad_group`), and create advertising portfolios (`create_portfolio`) - promoted products, negatives, SB and SD creatives, and either auto targeting, keywords, product targets or SD audience targeting. New-campaign creation also supports placement adjustments and an optional AMC audience. Use when the user wants to build / launch / set up a new campaign of any type - 新建广告活动 / 建一个自动广告 / 开个手动词的活动 / 建个 SB 或 SD 活动 / 按这批 ASIN 建活动 - add ad groups under an existing campaign, or create a portfolio (广告组合). It is not for editing existing objects (use sparkx-edit-ads), for AI managed groups (use sparkx-create-ai-group), or for reading data (use sparkx-query-ads-performance / sparkx-query-entity-metadata).Other plugins' skills for the same job