# ads_update_workflow_execution (https://sellersheetai.com/docs/mcp-api/tools/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.

Access: **READ** · toolset amazon_ads · family ads.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

MCP tool call:

```json
{
  "name": "ads_update_workflow_execution",
  "arguments": {
    "store": "myStore-US",
    "country_code": "<country_code>",
    "workflow_execution_id": "<workflow_execution_id>"
  }
}
```

Tool API (early access — contact us):

```bash
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>"}'
```

## Arguments

| Name | Type | Required | Description |
|---|---|---|---|
| `store` | string | yes | the store ref `<store>-<CC>` (name-country, e.g. 'myStore-US') — one of get_user_context's store_refs, verbatim. |
| `country_code` | string | yes | the Ads profile's 2-letter country code (e.g. 'US'). |
| `workflow_execution_id` | string | yes | data.workflow_execution_id from ads_create_workflow_execution or ads_list_workflow_executions. |

## Result

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