ads_update_workflow_execution

Cancel an AMC query that is still PENDING or RUNNING — Amazon's UpdateWorkflowExecution, whose one documented change is the status CANCELLED.

readAmazon Adsads.amc-reporting

Use it to stop a query started by mistake or one that runs too long; it frees one of the instance's 10 parallel runs. Amazon Ads API · UpdateWorkflowExecution · PUT /amc/reporting/{instanceId}/workflowExecutions/{workflowExecutionId} Amazon Ads API · getWorkflowExecution · GET /amc/reporting/{instanceId}/workflowExecutions/{workflowExecutionId} Docs: https://advertising.amazon.com/API/docs/en-us/amc-reporting#tag/Workflow-executions/operation/UpdateWorkflowExecution Docs: https://advertising.amazon.com/API/docs/en-us/amc-reporting#tag/Workflow-executions/operation/getWorkflowExecution

Call it

In an AI client (MCP)

tools/call
{
  "name": "ads_update_workflow_execution",
  "arguments": {
    "store": "myStore-US",
    "country_code": "<country_code>",
    "workflow_execution_id": "<workflow_execution_id>"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/ads_update_workflow_execution \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"store":"myStore-US","country_code":"<country_code>","workflow_execution_id":"<workflow_execution_id>"}'
Early access — the Tool API is open on request, contact us.

Arguments

NameTypeDescription
storerequiredstringthe store ref `<store>-<CC>` (name-country, e.g. 'myStore-US') — one of get_user_context's store_refs, verbatim.
country_coderequiredstringthe Ads profile's 2-letter country code (e.g. 'US').
workflow_execution_idrequiredstringdata.workflow_execution_id from ads_create_workflow_execution or ads_list_workflow_executions.

Result

Every tool answers {notification, data, human_action}; data carries:

  • the orchestrated result described below.
  • data.status — CANCELLED.

Gotchas

  • Gate: none — it stops a report request; nothing the seller owns changes.
  • A run that has already finished (SUCCEEDED, FAILED, REJECTED) cannot be cancelled: Amazon answers 400.

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude