Skip to main content
Glama

Apply product ad changes

apply_product_ad_changes
Destructive

Executes only a confirmed AD_AD_CHANGE plan on the authorized Amazon Ads account. Changes advertising ad states or supported Sponsored Brands ad names. Requires the plan's one-time confirmation receipt and an idempotency key. A linked structure draft may automatically prepare the next preview without confirming or executing it. Review Sandbox simulates advertising writes and skips continuation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
planIdYesConfirmed immutable workflow plan ID. If this call times out or disconnects, do not prepare a replacement plan: query get_workflow_plan, or retry this exact plan with the same idempotency key. An INDETERMINATE item means Amazon may have accepted the write and must be reconciled before any retry.
idempotencyKeyYesClient-generated key unique to this plan. Generate a new key for every newly prepared plan; include the planId or another random value. Reuse the exact key only when retrying apply for this same plan; never reuse it for a newly prepared plan.
applyContinuationNoFor atomic plans belonging to an AD_STRUCTURE_CREATE draft. Pass the applyContinuation object returned by continue_workflow_draft or the previous apply result unchanged with its current plan. After the approved write finishes, the server prepares the next-stage preview without confirming or executing it. If omitted, continuation may still be recovered from the active linked plan. Review Sandbox skips automatic continuation.
confirmationReceiptYesOne-time receipt returned by confirm_workflow_plan for this exact plan. A receipt for the current plan does not confirm subsequent plans.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsNo
planIdNo
statusNo
storeIdNo
summaryNo
planHashNo
policyIdNo
warningsNo
createdAtNo
expiresAtNo
simulatedNo
parametersNo
confirmedAtNo
nextActionsNo
planVersionNo
continuationNo
workflowTypeNo
executionModeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructive=true and openWorld=true, so the safety profile is covered; the description adds genuinely new traits beyond them: one-time confirmation receipts, idempotency semantics, and the fact that a linked draft may silently prepare (but not execute) the next preview, plus that Review Sandbox simulates writes. It never explains what a rejected/INDETERMINATE outcome looks like at the description level, but that is pushed into the parameter docs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The tool-level description is four short sentences that front-load the core action and the confirmation dependency, with the sandbox caveat last. The only weak spot is 'Review Sandbox simulates advertising writes and skips continuation,' which is terse to the point of being cryptic without prior context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, idempotent write tool with an output schema and full annotation coverage, the description supplies the confirmation gate, retry/idempotency model, continuation side effect, and sandbox behavior — enough to call it correctly. Residual gaps (retry-on-timeout and INDETERMINATE reconciliation) are handled in the parameter schema rather than here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the nested applyContinuation object is thoroughly documented in the schema, so the schema already carries parameter meaning. The description only restates that a receipt and idempotency key are required, adding no syntax or format detail beyond the structured fields. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a concrete verb (Executes) and resource (a confirmed AD_AD_CHANGE plan on the Amazon Ads account), and the second narrows scope to ad states and supported Sponsored Brands ad names. That distinguishes it from apply_product_ad_creation and the other apply_* siblings in the fleet, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Executes only a confirmed ... plan' plus the receipt and idempotency-key requirements implicitly set the precondition (confirm_workflow_plan must have run first) and the continuation/sandbox exceptions carve out when behavior differs. It gives clear context but stops short of naming the prepare/confirm siblings or stating explicit when-not conditions at the description level.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources