Command Palette

Search for a command to run...

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

sparkx-query-entity-metadata

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

Query advertising entity metadata: name, status, configuration, settings (no time range or metrics). For finding entity lists, getting config details…

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

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

Query Entity Metadata Skill

MCP Tool

This skill maps to MCP tool: get_entity_metadata. Required scope: amazon_sa_ads_configuration:read.

Profile scope is 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.

entity='aiGroup_schedule' is stricter: it requires exactly one profileId. See the dedicated section below.

userContext (required): Each call must include a non-empty string. 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 tables, the Ratio Metric Display Rule (including targetAcos), 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_entity_metadata.

When to Use

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

  • Query entity metadata (name, status, config, etc)
  • Find entity lists (e.g. all enabled campaigns, AI group list, portfolios with a budget set)
  • Get entity configuration info (budget settings, bidding strategy, AI group targets, current keyword bid)
  • Discover ad structure relationships (which AdGroups under a Campaign, ASIN ownership, which automation rules are enabled on a campaign)
  • Search entities by condition (name fuzzy match, status filter, bid/budget threshold filter)
  • Count entities (e.g. how many campaigns, how many portfolios have a budget)

✅ To count matching rows, read meta.total - do not page. total is the exact number of rows matching your filters, independent of pageSize. data.rowCount is only the current page's length and is never a total.

total is omitted when the downstream cannot supply one (notably asin, and aiGroup when its total is missing). In that case page to the end and sum data.rowCount, or narrow until one page fits. Entities that suppress pagination include automationRule, aiGroup_schedule, the five suggestion entities, sdCategory, and categoryBrand. The first seven and categoryBrand return every requested row. sdCategory instead caps output at 500 and reports meta.truncated / meta.total; narrow it rather than treating the cap as complete.

Note: This tool does NOT involve time range or performance metrics. For spend, clicks, ACOS etc, use get_ads_perf.

Note: This tool does NOT return historical point-in-time snapshots — it only returns the entity's current configuration. There is no asOfDate-style parameter, and this tool has no date parameters at all. If the user asks "what was the daily budget on 2026-03-26", that specific historical value cannot be retrieved with this tool; only the current value is available. Say so explicitly rather than guessing.

See the Tool Selection Decision Tree above if the user's ask might belong to get_ads_perf or get_operation_log instead.

Required Parameter: entity

Unlike get_ads_perf (which infers tables from select), get_entity_metadata requires you to explicitly declare which entity you're querying via the entity parameter. Omitting it is the most common cause of a failed call (errorType: invalid_params).

DSL Parameter Format

{
  "userContext": "User's original query + agent's calling reason",
  "entity": "campaign",
  "profileIds": [1234567890123456],
  "filters": {},
  "orderBy": [{"field": "fieldName", "direction": "ASC"}],
  "select": ["campaignId", "campaignName", "campaignState"],
  "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. aiGroup_schedule, amcAudience, keywordGroup, suggestedKeyword, suggestedTarget, suggestedBid, sdCategory, and categoryBrand require exactly one profile
entity string Yes — Entity type to query. Enum: profile / campaign / adGroup / target / keyword / negativeKeyword / negativeTarget / productAd / portfolio / placement / aiGroup / `aiGroup_schedul
Полный SKILL.md на GitHub

Установить sparkx-query-entity-metadata в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/automation-rule-reading.mdreferences/enum-i18n.mdreferences/example-ai-group-metadata.mdreferences/example-ai-group-schedule.mdreferences/example-asin-metadata.mdreferences/example-automation-rule.mdreferences/example-campaign-filter.mdreferences/example-meta-only.mdreferences/field-reference.mdreferences/managed-group-display.mdreferences/platform-notes.md

FAQ

Что делает скилл sparkx-query-entity-metadata?

Query advertising entity metadata: name, status, configuration, settings (no time range or metrics). For finding entity lists, getting config details, discovering ad structure relationships. Keywords: campaign list, campaign name, status query, AI group settings, ASIN info, ad group config, portfolio list, keyword list, product line, entity search, which ads, enabled/paused status, budget settings, bidding strategy, automation rules, managed group schedule, flight, seasonal plan, rule mode config, RBA rule conditions

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

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

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

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

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

Сравнить sparkx-query-entity-metadata с