/sparkx-ai-mcp:sparkx-query-operation-logfrom sparkx-ai-mcp
Queries SparkX AI platform operation logs for user and AI actions on ad entities. Tracks change history, audits operations, and troubleshoots issues like bid/budget adjustments and pause/enable records.
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.
This skill maps to MCP tool: get_operation_log. Required scope: amazon_sa_ads_logs:read.
Profile, tenant, and user scope are resolved from the authenticated bearer token. profileIds is required — always call get_user_authorized_context first to obtain authorized profile IDs, then pass one or more into profileIds. Every requested ID must be authorized: one unauthorized value fails the entire call with invalid_params / Requested profileIds contain unauthorized values — nothing is silently dropped (see Platform-Wide Rules below). If the user didn't specify a store, pass all authorized profileIds. Never pass tenantId or userId; the server derives them from the token.
⚠️ On this tool, how many profileIds you pass also changes the timezone of the timestamps you get back. Read "createdDate Timezone" below before you report any time to the user.
userContext (required): Must pass a non-empty string on every call. Preserve the user's original query as much as possible, plus the agent's reason for calling this tool. Summarize if too long, max 100 characters.
Before using this tool, read references/platform-notes.md — it covers auth flow, permission scopes, error handling, pagination/date-limit tables, currency rules, the tool-selection decision tree, and implicit inference rules shared across all 3 read tools. That file ships inside this same skill folder, so it travels with this skill regardless of how it's packaged/installed. This SKILL.md only covers what's specific to get_operation_log.
entities)get_operation_log behaves in one of two modes depending on entities. This is the most important thing to get right.
Mode A — Real pagination (when entities is explicitly set to exactly one non-aiGroup entity, e.g. ["campaign"]):
page (1-based, default 1) + pageSize (default 100, max 1,000). Response includes page, pageSize, hasNextPage.⚠️ One entity is necessary but not sufficient. Pagination also needs the query to resolve
to one downstream branch. The server groups operation types into five resource groups
(profile / portfolio / campaign / adGroup / target); if your entities + operationType +
actionType combination still spans more than one of them, page is silently ignored and
each branch returns its own first batch instead. The same applies when the entity name maps to
no known operation types at all.
So do not predict the mode — read it off the response. page / pageSize / hasNextPage
present means you are paginating; limit / truncated means you are not. If you sent page: 2
and got limit / truncated back, you did not get page 2 — you got the first batch again.
Never merge such results as if they were consecutive pages.
page (incrementing each call) while hasNextPage=true. This is the preferred way to retrieve a complete change history for one entity type — no date-splitting needed. (hasNextPage is the real-pagination equivalent of truncated.)Mode B — limit-only (when entities is empty/omitted, has multiple entities, is only aiGroup, or is a single entity that does not resolve to exactly one downstream branch — either it maps to no known operation types at all, or its types span more than one resource group):
page is ignored. A single call returns at most pageSize rows (default 100, max 1,000; aiGroup-only max 10,000), sorted on the raw timestamp string (newest-first only when every row shares one clock — see Shared Rules). Response includes limit and truncated.
⚠️ The cap is small relative to how fast the log grows. In an account where AI is
active, machine rows alone can run into the hundreds per hour (measured: ~530/h in one
store), so a full day of AI activity does not fit in one call and often not in a day's worth
of sub-windows either. Before promising a customer "every change in the last N days", check
the volume first with a narrow probe window and say plainly what period can actually be
enumerated. For an AI-activity question, prefer narrowing by resourceIds (aiGroup is the one
filter that reliably narrows) over trying to page the whole account.⚠️ Today's count is still moving; finished days are settled. New rows show up within minutes of the change. Re-querying a saved pull six weeks later returned the same rows for every finished day, Amazon-side Out of Budget events included (measured 2026-11-27). So a count for the current day is a count as of when you ran it — say so when the number is the answer ("47 changes as of 10:20 today"); a finished day needs no such caveat. If a finished day seems to grow, check the day boundary first: it follows the timestamp timezone rules below, and a window cut on another clock (for example the user's own timezone) shifts rows between days.
When paging, rows that share the same second can straddle a page boundary and one can be
dropped. If an exact count matters, narrow the window until it fits in one page, or compare
totalSize with the rows you collected.
truncated=true means more matched than could be returned. You cannot page. Handle it in this order:
entities to a single non-aiGroup entity → this switches to Mode A, where you can page through the complete set. Only do this when it matches the user's actual intent; if they genuinely want the full cross-entity history, don't silently narrow — say the result is a partial view.resourceIds/actionType/operationType/changeBy) as a last resort — this changes what you're searching for, so flag the result as partial when you do.aiGroup is inherently limit-only (but its 10,000 cap is usually enough for a window).Use this tool when the user needs any of the following:
groupBy)See the Tool Selection Decision Tree above if the user's ask might belong to get_ads_perf or get_entity_metadata instead.
For questions such as "why did AI change this bid?" or "which mechanism changed this budget?", separate historical evidence from current configuration:
get_entity_metadata and preserve the correct internal
and Amazon ids. resourceIds for campaign/ad group use Amazon ids; aiGroup uses its internal id.truncated=false or disclose the lower bound.changedBy, operationSource, operationType, and aiGroupScheduleId when present.sparkx-query-entity-metadata (campaign, aiGroup, aiGroup_schedule, and campaign
automationRule). This answers what can still act now, not what was necessarily configured at
the historical timestamp.An aiGroupScheduleId links an operation to a schedule. A null value does not prove there was no
scheduled influence unless the operation contract for that row guarantees the field. Likewise,
changedBy=AI identifies the actor class, not the model's causal explanation. Never use today's
bid range or rule configuration as proof of the ceiling or trigger that applied on the event date.
{
"userContext": "User's original query + agent's reason for calling",
"dateStart": "YYYY-MM-DD",
"dateEnd": "YYYY-MM-DD",
"profileIds": [1234567890123456],
"entities": ["entity_type_list"],
"resourceIds": [{"idEntity": "campaign", "ids": [123456]}],
"changeBy": {"operator": "IN", "values": ["ai", "automation"]},
"actionType": {"operator": "IN", "values": ["Bid Increased"]},
"operationType": {"operator": "IN", "values": ["Campaign Paused"]},
"campaignTypes": ["campaign_type_list"],
"targetTypes": ["target_type_list"],
"placementTypes": ["placement_type_list"],
"page": 1,
"pageSize": 100
}
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| profileIds | array[long] | Yes | — | Profile IDs from get_user_authorized_context -> profiles[].profileId. All must be authorized — one unauthorized value fails the whole call; there is no silent intersection |
| dateStart | string | Yes | — | Start date YYYY-MM-DD. Max span vs dateEnd is 90 inclusive calendar days (see platform-notes.md for the precise off-by-one-safe definition); cannot be more than 15 months before today |
| dateEnd | string | Yes | — | End date YYYY-MM-DD |
| userContext | string | Yes | — | User's original query + reason, max 100 chars |
| entities | array[string] | No | all eight entity types | Entity type filter. Unknown values (incl. keyword, audience, productLine) are rejected with invalid_params, and the error lists the valid values. See field-reference.md -> entities |
| resourceIds | array[object] | No | — | Resource ID filter (see below) |
| changeBy | object | No | — | Operator filter (see below) |
| changeField | string | No | — | Exact raw changeField value, e.g. servingStatus or dailyBudget — the same string the response rows carry, so read one off a row and feed it back. Exact match, not a prefix or pattern. Requires explicit entities that exclude aiGroup; a blank string is rejected. Narrower than operationType: it targets the field that changed rather than the kind of change |
| operationSources | array[string] | No | — | Channel filter: PAGE / MCP / FEISHU, case-insensitive. Omit it or pass [] for no filter. Read "operationSources - the channel filter" below before using it: it behaves very differently on ad logs and managed-group logs, and two of the three values currently return nothing |
| actionType | object | No | — | Action type filter — coarse-grained (see below). ⚠️ Only use values from the actionType enum table — do not invent or guess values |
| operationType | object | No | — | Operation type filter — fine-grained (see below). ⚠️ Only use values from the complete operationType table — do not invent or guess values |
Recommended strategy: when unsure which exact
operationTypevalues to use, first query withactionType(coarse-grained) to explore results and identify the specificoperationTypevalues appearing in the returned rows, then follow up withoperationType(fine-grained) for precise filtering. | campaignTypes | array[string] | No | — | Campaign type filter | | targetTypes | array[string] | No | — | Targeting type filter (see below) | | placementTypes | array[string] | No | — | Placement type filter (see below) | | page | int | No | 1 | Page number (1-based). Only effective whenentitiesis exactly one non-aiGroupentity (Mode A); ignored for multi-entity oraiGroup-only queries (Mode B) | | pageSize | int | No | 100 | Max rows per page (Mode A) / per call (Mode B). Non-aiGroupmax 1,000;aiGroup-only max 10,000. Results are sorted on the raw timestamp string, which is newest-first only within one clock |
operationSources - the channel filteroperationSources takes PAGE, MCP and FEISHU (case-insensitive; an unknown value is
rejected and the error lists the three). It looks like one filter over one field. It is not:
ad logs and managed-group logs store the channel in completely different ways, and the filter
is pushed down differently for each.
Managed-group (aiGroup) logs are currently skipped whenever you pass this filter. The
server-side push-down for them is behind a switch that is off, so if aiGroup is in scope
and operationSources is non-empty, that half of the query is not run at all and meta.hint
says so: operationSources filtering is not yet available for aiGroup logs, so aiGroup logs were not queried (with ; rows contain ad logs only appended when ad logs were in scope too).
Read the hint before reporting. Rows coming back without a managed-group row in them is
not evidence no managed-group change happened - the query never looked.
aiGroup refuses several other filters, and what happens depends on entitiesManaged-group logs cannot be narrowed by actionType, by operationType, by resourceIds
that mix more than one idEntity, or by a portfolio / productLine resourceIds entry. One
idEntity with several IDs of that type is fine - it is the mixing that is refused, because
the managed-group side unions resource dimensions instead of intersecting them.
Your entities | What happens |
|---|---|
only aiGroup | the call fails: aiGroup does not support filtering by <list>. Omit these filters to query aiGroup, or select ad entities. |
| mixed, or omitted | the managed-group half is skipped and meta.hint says Filtering by <list> applies to ad logs only. aiGroup logs were skipped. |
Same trap as operationSources above: in the mixed case you get rows, they are ad logs only, and
nothing in them says a managed-group change did not happen. Read the hint.
placementTypes can narrow entities for youLeaving entities out normally means "all of them" - except when placementTypes is set and
changeField is not. Then the scope collapses to ["placement"], or to
["placement", "target"] when targetTypes is also set. So an omitted entities plus a
placement filter is not a whole-account query with a filter on top; it is a placement query.
Set entities explicitly whenever you mean something wider.
FEISHU returns nothing at all today. Ad logs have no Feishu channel, and the only rows
that could carry it are the managed-group rows that get skipped. operationSources: ["FEISHU"]
therefore produces an empty result that means "not queried", not "no Feishu changes". Do not
report it as an answer.
PAGE is an approximation. Ad logs have no channel column; PAGE is pushed down as
sourceType = platform, which covers the web console but also API and some AI-initiated
changes. Narrow it with changeBy when the distinction matters, and describe the result as
"platform-originated" rather than "done in the console".
MCP is exact on ad logs. Changes written through this server are rewritten to the MCP
source downstream, so the filter matches them precisely, and they are the only ad rows whose
operationSource comes back non-null.
You cannot reproduce PAGE by filtering the returned rows. An MCP ad row reports
sourceType: platform as well - the MCP channel shows up in operationSource, not in
sourceType. Filtering returned rows on sourceType == "platform" therefore sweeps MCP
changes back in. Push the filter down, or split on operationSource.
| You want | Pass | What actually comes back |
|---|---|---|
| Only MCP changes to ads | ["MCP"] | Exact. Managed-group rows skipped - say so |
| Console / platform changes to ads | ["PAGE"] | Platform-originated, may include API and AI. Managed-group rows skipped |
| Feishu changes | - | Not available. ["FEISHU"] returns zero rows regardless |
| Everything, including managed groups | omit the parameter | Full result; split by operationSource client-side |
Combined with a concrete changeBy, both filters apply (intersection). If the combination
leaves no possible source, no ad logs come back - an empty result there is the filter, not the
data.
See references/field-reference.md for the complete parameter enum reference (entities, resourceIds, campaignTypes, changeBy, actionType, operationType, targetTypes, placementTypes) and the ChangeLogVO response field table.
data.rowCount is this response's row count. data.totalSize, when present, is the total
matching rows before pagination - see "Getting a Complete Count". It is absent, not 0,
when it cannot be determined. The meta block carries either page / pageSize /
hasNextPage (paginated) or limit / truncated (limit-only), never both - that pair is how
you tell which mode you actually got. The example below is the paginated shape; a
limit-only response carries limit / truncated instead and has no totalSize.
{
"isError": false,
"toolName": "get_operation_log",
"data": {
"rows": [
{
"entity": "campaign",
"entityName": "Brand-SP-Auto-US",
"amazonEntityId": 298539385213868,
"entityId": 298539385213868,
"operationType": "DailyBudget Increased",
"profileId": 4404871489220462,
"aiGroupName": "Growth-Group-1",
"amazonCampaignId": 298539385213868,
"campaignName": "Brand-SP-Auto-US",
"campaignType": "sponsoredProducts",
"amazonAdGroupId": null,
"adGroupName": null,
"changeField": "dailyBudget",
"previousValue": "50.0",
"newValue": "65.0",
"countryCode": "US",
"currencyCode": "USD",
"createdDate": "2024-06-15 14:30:00",
"changedBy": "AI"
}
],
"rowCount": 1,
"totalSize": 37
},
"meta": {
"page": 1,
"pageSize": 100,
"hasNextPage": false,
"effectiveProfileIds": [4404871489220462],
"hint": "Limit conclusions to this query's scope. Missing fields are not zero, and empty results do not prove that no matching business data exists. Do not present partial or paginated results as complete. Distinguish returned facts from analytical inferences; state limitations or query further when evidence is insufficient."
},
"requestId": "a1b2c3d4e5f6"
}
Everything is nested. rows and rowCount live under data; pagination, currency and
hints live under meta. Only isError, toolName and requestId are top level. Reading
response.rows returns nothing - it is response.data.rows. meta keys are omitted when
they do not apply (not set to null). A successful read always has meta.hint: any
query-specific warning comes first, followed by the shared interpretation boundary.
The pagination fields differ by mode, and they all live under meta: Mode A (real pagination) gives meta.page, meta.pageSize, meta.hasNextPage; Mode B (limit-only) gives meta.limit, meta.truncated (as shown above). Rows are always data.rows and data.rowCount.
createdDate Timezone (depends on entity + profileIds count)createdDate is not always UTC. Its timezone depends on which entity the row belongs to and on how many profileIds you passed. Confirmed by testing (2026-08):
| Entity | profileIds count | createdDate timezone | Example |
|---|---|---|---|
aiGroup (SP/SB) | one or many | UTC | 2026-08-24 05:58:50 |
aiGroup (SD) | one or many | downstream DB timezone — undocumented | 2026-08-24 05:58:50 |
campaign / adGroup / target / placement | one | Store-local | 2026-08-24 00:01:06 (LA time) |
campaign / adGroup / target / placement | many | UTC | 2026-08-24 07:01:06 (UTC) |
Verified on one pause record for a US profile (America/Los_Angeles, UTC-7 in August):
profileIds: [4404871489220462] → "2026-08-24 00:01:06"profileIds: [4404871489220462, 2618208845223116] → "2026-08-24 07:01:06"Same event, 7 hours apart — exactly the LA daylight-saving offset.
entities: ["campaign", "aiGroup"] on a single profile returns store-local campaign rows and UTC SP/SB aiGroup rows in the same list — and SD aiGroup rows in the downstream DB's own timezone, which is documented nowhere. Rows are sorted on the raw timestamp string, so a mixed-clock result is not reliably chronological — don't present it as an ordered timeline, and don't compute "X happened before Y" across entity types.entities to ad entities (campaign/adGroup/target/placement), and label the output store-local.countryCode, and label the output UTC. Querying more profiles does not normalise managed-group rows: SP/SB aiGroup rows are already UTC regardless, and SD aiGroup rows stay in the downstream DB's timezone and are still unplaceable. If the timeline must include SD managed-group history, say those rows could not be put on the same clock.createdDate with the dateStart/dateEnd boundary. Which zone the request-level filter uses is not documented, so a row can sit near the edge of your requested window in one clock and outside it in another. For boundary-sensitive questions ("what changed yesterday" on a non-UTC store), say results at the edges are approximate.The MCP layer does no conversion; this is how the log data itself is returned.
| Field | Type | Description |
|---|---|---|
isError | boolean | Top level. Whether the call errored — check this before reading rows |
toolName | string | Top level |
data.rows | array[ChangeLogVO] | Log entries, sorted on the raw timestamp string. With one clock that is newest-first; across mixed clocks it is not a reliable chronology — see platform-notes |
data.rowCount | int | Number of rows returned on this page/call |
meta.page / meta.pageSize | int | Mode A only. Current page and page size |
meta.hasNextPage | boolean | Mode A only. true → fetch page+1 to continue; loop until false for the complete set. (Semantically equivalent to Mode B's truncated) |
meta.limit | int | Mode B only. The pageSize cap actually applied |
meta.truncated | boolean | Mode B only. true means more matched than limit could return. You cannot page — steer the user to a single entity (→ Mode A), else split the date range into non-overlapping sub-windows, else add filters as a last resort (flagging the result as partial) |
meta.hint | string | Always present on success. Truncation guidance, when applicable, precedes the shared interpretation boundary |
meta.effectiveProfileIds | array[long] | Profile IDs the query ran against — an echo of your request (unauthorized IDs fail the call outright) |
requestId | string | Top level. Trace ID — quote it when reporting a failure to the user. May be absent locally |
meta.currency | string | Optional roll-up of the rows' currencies: a single code if all rows agree, the literal "mixed" if they don't, absent if no row carries one. "mixed" is not a currency — fall back to each row's currencyCode, and never sum or format amounts across a mixed result |
On error, the response instead follows the shared error envelope described in Platform-Wide Rules above (all errors use a single top-level errorType, tool and pipeline alike, e.g. rate_limited).
There is no server-side groupBy for this tool — to answer "how many budget changes did each operator make" or "count of placement adjustments per campaign" completely and correctly, first pull the complete row set, then aggregate client-side. How you get the complete set depends on the mode:
First, look for data.totalSize. When the query qualifies for Mode A, the response may
carry totalSize: the total matching log rows before pagination. Three rules:
aiGroup entity
resolves to one downstream query and the count can be determined; otherwise the key is
simply absent. Treat absence as "unknown" and fall back to the loops below.totalSize: 0 is a real zero, but only reliably so on the first page - the downstream
omits zero counts, so the server can only conclude "0" when page 1 came back empty and
successful.When totalSize is present you can answer "how many" without paging at all. When it is absent
but hasNextPage is true, that means another page may exist - not that it does. The
next page can come back empty, which is a normal stop condition, not an error.
If you can scope to a single non-aiGroup entity (Mode A) — preferred: loop page (incrementing each call) while hasNextPage=true, collecting rows; raise pageSize toward the max (1,000) to cut round trips. Once hasNextPage=false you have the complete set — aggregate and you're done. No date-splitting needed.
Otherwise (Mode B: multi-entity or aiGroup-only) — use date-splitting:
truncated.truncated=false: the rows are complete for that window — aggregate client-side and you're done.truncated=true: split the date range into two non-overlapping sub-windows (bisect at the midpoint, second half starting the day after the first half ends — never share a date), and recursively repeat on each half.truncated=true on its own (more than the cap — 1,000, or 10,000 for aiGroup-only — in one day for your filters), this tool cannot guarantee a complete count for that day. Don't report a partial number as exact — tell the user it's a lower bound (e.g. "at least 1,000 changes on 2024-06-15; can't return an exact count for a single day this active") and suggest scoping to a single entity (Mode A) or narrowing by resourceIds/operationType.Query last 7 days of AI auto-adjustment records:
{
"profileIds": [4404871489220462],
"dateStart": "2026-07-13",
"dateEnd": "2026-07-19",
"changeBy": {"operator": "IN", "values": ["ai"]},
"pageSize": 100,
"userContext": "Last 7 days of AI auto-adjustments"
}
All operations on a specific campaign (resolve name to ID first via get_entity_metadata, then):
{
"profileIds": [4404871489220462],
"dateStart": "2026-06-01",
"dateEnd": "2026-06-30",
"resourceIds": [{"idEntity": "campaign", "ids": [298539385213868]}],
"pageSize": 1000,
"userContext": "Full change history for this campaign"
}
Budget increases made by people (not AI/automation):
{
"profileIds": [4404871489220462],
"dateStart": "2026-06-01",
"dateEnd": "2026-06-30",
"entities": ["campaign"],
"actionType": {"operator": "IN", "values": ["Budget Increased"]},
"pageSize": 1000,
"userContext": "Budget increases made by people this month"
}
No changeBy filter: manual is rejected by the server, and it never covered changes
recorded under a user's email anyway (see field-reference.md ->
changeBy). Keep rows whose changedBy
is an email or Manual (Amazon Console is a source, not a person), and whose changeField is dailyBudget - in AI
managed groups, AI's hourly currentBudget rows also land under Budget Increased.
operationType and actionType are closed enums — you MUST only use values listed in references/field-reference.md. Never invent, guess, or interpolate values. If unsure whether a value exists, consult the reference table before sending the request. Values are English display strings (e.g. "DailyBudget Increased", "Campaign Paused") — pass them exactly as listed, case-sensitivedateStart/dateEnd request params use YYYY-MM-DD; createdDate in returned rows is a full timestamp — but its timezone varies (SP/SB aiGroup = UTC, SD aiGroup = the downstream DB's timezone and therefore unknown; ad entities = store-local for one profileId, UTC for several). Always label the zone, never merge single- and multi-profile results, and treat a mixed-entity result as not reliably chronological. See "createdDate Timezone" abovedateEnd must be equal to or later than dateStartentities): a single non-aiGroup entity → real pagination (page + pageSize, loop until hasNextPage=false); multi-entity or aiGroup-only → limit-only (pageSize caps the call, max 1,000 / aiGroup 10,000, check truncated). For a complete count in limit-only mode, prefer steering to a single entity, otherwise use the non-overlapping date-split procedure aboveentities is not specified, the server queries all eight entity types - portfolio, campaign, profile, aiGroup, productAd, adGroup, target, placementprofileIds is required. Always call get_user_authorized_context first. If the user doesn't name a store, pass all authorized profileIds — but note this also switches ad-entity timestamps to UTC (see above)profileId must be authorized — one bad value fails the whole call (Requested profileIds contain unauthorized values); nothing is silently droppedpageSize (≤0, or over the max: 1,000, or 10,000 for aiGroup-only) or a page ≤ 0 is an error (invalid_params), not clamped — the same as get_ads_perf/get_entity_metadata; floor any computed value at 1changeBy, actionType, and operationType must be passed as objects with explicit operator/values (not bare arrays). Incomplete filters are rejected with invalid_params (no longer silently ignored): a missing operator, or values that is null / an empty array / all-null, all fail — build the full {"operator": "IN", "values": [...]} object or omit the filter entirely.resourceIds is strictly validated too: each item must be an object with idEntity and an ids array of numbers — a missing idEntity, a non-numeric ID, or a non-array ids returns invalid_params (previously such items were silently dropped, e.g. "3 IDs requested, only 2 queried"). Exception: an explicit ids: null is a reserved value meaning "no ID restriction" (different from [], which means the scope genuinely has no results) — it is accepted, not rejected.get_entity_metadata, then pass the ID into resourceIdsgroupBy) — aggregate client-side after pulling rows, splitting non-overlapping date windows whenever truncated=trueprofileIds spans multiple stores, map each row's profileId to a profileName before describing resultspreviousValue/newValue are always local currency — read the row's currencyCode, don't assume USD. The optional top-level currency may be the literal "mixed" on cross-store results; that's a marker, not a currencyplacementTypes has exactly 4 confirmed values — don't invent additional oneserrorType and handle per the guidance above (e.g. rate_limited means wait retryAfterSeconds before retrying, not that the question is unanswerable)references/platform-notes.mdreferences/field-reference.mdreferences/enum-i18n.mdreferences/enum-i18n.md (opens in a new tab)references/example-ai-bid-changes.md (opens in a new tab)references/example-campaign-operations.md (opens in a new tab)references/example-pause-operations.md (opens in a new tab)references/example-resolve-name-to-id.md (opens in a new tab)references/example-user-budget-changes.md (opens in a new tab)references/field-reference.md (opens in a new tab)references/platform-notes.md (opens in a new tab)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