Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sparkx-query-operation-log

БесплатноБез исполняемых скриптовНе проверен

Query SparkX AI platform operation logs: user and AI action history on ad entities. For tracking change history, auditing operations, troubleshooting issues…

infometaот infometa★ 475 звёзд на GitHub

Об этом скилле

Query Operation Log Skill

MCP Tool

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.

Platform-Wide Rules

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.

⚠️ Two Pagination Modes (decided by 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"]):

  • Supports page (1-based, default 1) + pageSize (default 100, max 1,000). Response includes page, pageSize, hasNextPage.
  • To get the complete history, loop 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, or is only aiGroup):

  • 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.

⚠️ Rows keep arriving for about two days after the fact. The log backfills, so the same query for "yesterday" can return more rows tomorrow than it does today. A count is a count as of when you ran it — say so when the number is the answer ("47 changes as of 10:20 today"), and never present a recent-day count as settled. Re-running an older window is the way to confirm it has stopped moving.

  • truncated=true means more matched than could be returned. You cannot page. Handle it in this order:
    1. Prefer steering the user to a single entity. If they really only care about one kind of change ("just budget changes", "just campaign pause/enable"), guide them to narrow 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.
    2. Split the date range into non-overlapping sub-windows and recurse (see "Getting a Complete Count" below).
    3. Add filters (resourceIds/actionType/operationType/changeBy) as a last resort — this changes what you're searching for, so flag the result as partial when you do.
    4. aiGroup is inherently limit-only (but its 10,000 cap is usually enough for a window).

When to Use

Use this tool when the user needs any of the following:

  • Query ad operation history
  • Find out who made what changes (manual vs AI)
  • Track AI auto-adjustment records (bid, budget, etc)
  • View bid/budget adjustment history
  • Audit a specific
Полный SKILL.md на GitHub

Установить sparkx-query-operation-log в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/enum-i18n.mdreferences/example-ai-bid-changes.mdreferences/example-campaign-operations.mdreferences/example-pause-operations.mdreferences/example-resolve-name-to-id.mdreferences/example-user-budget-changes.mdreferences/field-reference.mdreferences/platform-notes.md

FAQ

Что делает скилл sparkx-query-operation-log?

Query SparkX AI platform operation logs: user and AI action history on ad entities. For tracking change history, auditing operations, troubleshooting issues. Keywords: operation log, change history, who changed what, bid adjustment records, budget adjustment, AI auto-adjustment, pause/enable records, operation audit, modification timeline, ad adjustment log

Как установить скилл sparkx-query-operation-log?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sparkx-query-operation-log запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sparkx-query-operation-log с