Skip to content
AdlyseMCP Docs
Product guideMCP reference
⌘K
Open Adlyse
⌘K
Overview
QuickstartAuthentication
adlyse-insights
adlyse-reports
adlyse-ads
adlyse-workflows
list_workflowsget_workflowrun_workflowget_run_status
adlyse-adminadlyse-all
  1. Overview
  2. adlyse-workflows

get_run_status

Poll the status of a workflow run. The run is finished when status is completed (with output) or failed (with error).

Parameters#

NameTypeRequiredDefaultDescription
run_idstringyesRun id (agent_run_…)

Returns (running)#

json
{
  "run_id": "agent_run_xyz",
  "status": "running",
  "created_at": "2026-04-22T14:00:00Z",
  "url": "https://app.adlyse.com/run/agent_run_xyz",
  "node_runs": [
    {
      "node_id": "n_1",
      "node_name": "Fetch spend",
      "node_type": "tool_call",
      "status": "completed",
      "duration_seconds": 1.1,
      "input_tokens": 0,
      "output_tokens": 0,
      "completed_at": "2026-04-22T14:00:01Z"
    }
  ],
  "node_run_count": 1
}

Returns (completed)#

json
{
  "run_id": "agent_run_xyz",
  "status": "completed",
  "created_at": "2026-04-22T14:00:00Z",
  "output": {
    "company": "Example Corp",
    "role": "Head of Growth",
    "seniority": "Director"
  },
  "completed_at": "2026-04-22T14:00:08Z",
  "duration_seconds": 8.4
}

Returns (failed)#

json
{
  "run_id": "agent_run_xyz",
  "status": "failed",
  "created_at": "2026-04-22T14:00:00Z",
  "error": "No company found for email lead@example.com",
  "completed_at": "2026-04-22T14:00:03Z"
}
FieldDescription
statuspending, running, completed, dropped, or failed
urlLink to the run detail page
outputPresent only on completed. Shape matches the workflow’s output_schema
errorPresent only on failed. Pulled from the failing node’s output
duration_secondsPresent on completed
node_runsPer-node breakdown. Full output only for failed nodes and the workflow’s output node — use get_node_run for any other node
node_run_countNumber of node executions so far

Errors#

error_typeWhen
auth_errorMissing / invalid API key
not_foundRun id doesn’t exist or belongs to another org

Polling pattern#

plaintext
loop:
  result = get_run_status(run_id)
  if result.status in ("completed", "failed", "dropped"):  break
  sleep 1 second

Most workflows complete in 1–30 seconds. A handful of data-heavy workflows (e.g. multi-step LLM chains) run for up to ~2 minutes.

Example#

Request: { "run_id": "agent_run_xyz" }

Response: see “Returns” sections above.

See also#

  • run_workflow — kick off a run
  • get_workflow — inspect output_schema before interpreting output
  • get_node_run — one node’s full output
Previousrun_workflowNextadlyse-admin