Run Saved Workflow
run_workflowResolve a saved workflow by id and return a structured execution plan for a single ticker. Each plan entry names a real MCP tool or SOP plus its ticker-substituted arguments; the calling agent invokes them in order, applying any skip_if predicate against the previous step's output.
This tool does NOT execute the steps server-side. It plans; the agent runs. Iterate through plan[] in order, call the named tool/SOP with args, accumulate outputs, and apply each step's skip_if (skip the step when the previous output's path equals equals).
Workflows are private state owned by the calling user. Sample-tier callers are rejected. Pair with list_workflows (frontend) to discover available workflow_ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | No | US-listed ticker the workflow should run against, e.g. 'AAPL'. Pass either `ticker` (single) or `tickers` (batch up to 50). Exactly one is required. | |
| tickers | No | Batch mode — array of US-listed tickers, up to 50. When provided, the response has `plans[]` (one plan per ticker) instead of `plan`. Parity with the frontend batch-runner so agents can request 'plan over my watchlist' in a single call. | |
| workflow_id | Yes | Workflow id returned by the frontend workflow builder. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | Provenance envelope — data lineage for every MCP response | |
| plan | Yes | ||
| plans | Yes | ||
| ticker | Yes | ||
| workflow | Yes | ||
| instructions | Yes |