# ads_get_workflow_execution (https://sellersheetai.com/docs/mcp-api/tools/ads_get_workflow_execution)

> The status of an AMC query from ads_create_workflow_execution.

Access: **READ** · toolset amazon_ads · family ads.amc-reporting

Poll every 15–30 seconds; most queries finish within two minutes. 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/getWorkflowExecution

## Call it

MCP tool call:

```json
{
  "name": "ads_get_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_get_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. |

## Result

- `data.status` — SUCCEEDED when the rows are ready; PENDING or RUNNING while AMC works; REJECTED when AMC refused the SQL (a privacy rule or a syntax error — Amazon answers it although its spec omits it), FAILED or CANCELLED otherwise.
- `data.status_reason` — Amazon's sentence when REJECTED or FAILED — fix the SQL by it.
- `data.output_columns[]` — {name, column_type, data_type} once validated.

## Params (Amazon schema)

- instanceId*: string workflowExecutionId*: string includeWorkflow: boolean