> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Automation Workflows MCP Tools

> Create, configure, test, and manage automation workflows, triggers, and canvas step graphs.

Create, configure, test, and manage automation workflows, triggers, and canvas step graphs.

All tools in this suite operate on workspace objects and support dual execution via our REST API.

***

## Available Tools (17)

### `list_workflows`

List automation workflows in the organization.

* **Scope**: `workflows:read`
* **REST Route**: [`GET /api/v1/workflow`](https://docs.posttu.com/api-reference/workflow/list-workflows)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `isActive` | `boolean` | No | Optional filter by active status (true or false) |
| `limit` | `number` | No | Max items to return (1-100, default 50) |
| `cursor` | `string` | No | Optional pagination cursor |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_workflows",
    "arguments": {
      "isActive": false,
      "limit": 10,
      "cursor": "example_value"
    }
  }
}
```

***

### `create_workflow`

Initialize a new workflow automation container.

* **Scope**: `workflows:write`
* **REST Route**: [`POST /api/v1/workflow`](https://docs.posttu.com/api-reference/workflow/create-workflow)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `name` | `string` | **Yes** | Workflow name |
| `description` | `string` | No | Optional description |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_workflow",
    "arguments": {
      "name": "example_value",
      "description": "example_value"
    }
  }
}
```

***

### `get_workflow`

Get details of a workflow including its trigger, step graph, and recent runs.

* **Scope**: `workflows:read`
* **REST Route**: [`GET /api/v1/workflow/{id}`](https://docs.posttu.com/api-reference/workflow/get-workflow)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `id` | `string` | **Yes** | Workflow ID |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_workflow",
    "arguments": {
      "id": "id_example"
    }
  }
}
```

***

### `update_workflow`

Update workflow metadata or canvas graph definition.

* **Scope**: `workflows:write`
* **REST Route**: [`PATCH /api/v1/workflow/{id}`](https://docs.posttu.com/api-reference/workflow/update-workflow)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `id` | `string` | **Yes** | Workflow ID |
| `name` | `string` | No | Updated workflow name |
| `description` | `string` | No | Updated description |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_workflow",
    "arguments": {
      "id": "id_example",
      "name": "example_value",
      "description": "example_value"
    }
  }
}
```

***

### `delete_workflow`

Delete an automation workflow and its execution logs.

* **Scope**: `workflows:write`
* **REST Route**: [`DELETE /api/v1/workflow/{id}`](https://docs.posttu.com/api-reference/workflow/delete-workflow)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `id` | `string` | **Yes** | Workflow ID to delete |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delete_workflow",
    "arguments": {
      "id": "id_example"
    }
  }
}
```

***

### `activate_workflow`

Toggle active production status of a workflow.

* **Scope**: `workflows:write`
* **REST Route**: [`POST /api/v1/workflow/{id}/active`](https://docs.posttu.com/api-reference/workflow/activate-workflow)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `id` | `string` | **Yes** | Workflow ID |
| `isActive` | `boolean` | **Yes** | Set true to activate, false to pause |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "activate_workflow",
    "arguments": {
      "id": "id_example",
      "isActive": false
    }
  }
}
```

***

### `publish_workflow`

Publish a workflow draft canvas into production.

* **Scope**: `workflows:write`
* **REST Route**: [`POST /api/v1/workflow/{id}/publish`](https://docs.posttu.com/api-reference/workflow/publish-workflow)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `id` | `string` | **Yes** | Workflow ID to publish |
| `note` | `string` | No | Optional release note |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "publish_workflow",
    "arguments": {
      "id": "id_example",
      "note": "example_value"
    }
  }
}
```

***

### `set_workflow_trigger`

Configure or update the trigger node of a workflow canvas.

* **Scope**: `workflows:write`
* **REST Route**: [`POST /api/v1/workflow/{id}/trigger`](https://docs.posttu.com/api-reference/workflow/set-trigger)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `id` | `string` | **Yes** | Workflow ID |
| `name` | `string` | **Yes** | Trigger piece/type name (e.g. schedule, webhook) |
| `displayName` | `string` | **Yes** | Human-readable trigger display name |
| `settings` | `object` | No | Trigger settings object |
| `cronExpression` | `string` | No | Optional cron expression for schedule triggers |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_workflow_trigger",
    "arguments": {
      "id": "id_example",
      "name": "example_value",
      "displayName": "example_value",
      "settings": {},
      "cronExpression": "example_value"
    }
  }
}
```

***

### `upsert_workflow_step`

Add or update a step node in a workflow canvas graph.

* **Scope**: `workflows:write`
* **REST Route**: [`POST /api/v1/workflow/{id}/step`](https://docs.posttu.com/api-reference/workflow/upsert-step)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `id` | `string` | **Yes** | Workflow ID |
| `stepId` | `string` | No | Optional existing step ID when updating a step |
| `name` | `string` | **Yes** | Step action identifier (e.g. ai\_ask\_ai, x\_create\_post, http\_request, condition, loop, slack\_send\_channel\_message) |
| `displayName` | `string` | **Yes** | Human-readable step display name |
| `settings` | `object` | No | Step settings configuration object |
| `parentStepId` | `string` | No | Optional parent condition or loop step ID when nesting a step |
| `branchId` | `string` | No | Optional conditional branch ID when placing a step inside a condition router |
| `afterStepId` | `string` | No | Optional preceding step ID in the graph sequence |
| `previousStepId` | `string` | No | Optional previous step ID in the linked-list graph sequence |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "upsert_workflow_step",
    "arguments": {
      "id": "id_example",
      "stepId": "stepId_example",
      "name": "example_value",
      "displayName": "example_value",
      "settings": {},
      "parentStepId": "parentStepId_example",
      "branchId": "branchId_example",
      "afterStepId": "afterStepId_example",
      "previousStepId": "previousStepId_example"
    }
  }
}
```

***

### `delete_workflow_step`

Delete a step node from a workflow canvas graph.

* **Scope**: `workflows:write`
* **REST Route**: [`DELETE /api/v1/workflow/{id}/step/{stepId}`](https://docs.posttu.com/api-reference/workflow/delete-step)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `id` | `string` | **Yes** | Workflow ID |
| `stepId` | `string` | **Yes** | Step node ID to delete |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delete_workflow_step",
    "arguments": {
      "id": "id_example",
      "stepId": "stepId_example"
    }
  }
}
```

***

### `test_workflow`

Execute an isolated test run of a workflow draft canvas.

* **Scope**: `workflows:write`
* **REST Route**: [`POST /api/v1/workflow/{id}/test`](https://docs.posttu.com/api-reference/workflow/test-run)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `id` | `string` | **Yes** | Workflow ID |
| `triggerPayload` | `object` | No | Optional simulated trigger payload passed as state.triggerPayload (for webhook triggers, nest fields under \{ body: \{...} }) |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "test_workflow",
    "arguments": {
      "id": "id_example",
      "triggerPayload": {}
    }
  }
}
```

***

### `get_workflow_runs`

List execution run history logs for a workflow.

* **Scope**: `workflows:read`
* **REST Route**: [`GET /api/v1/workflow/{id}/runs`](https://docs.posttu.com/api-reference/workflow/get-runs)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `id` | `string` | **Yes** | Workflow ID |
| `limit` | `number` | No | Optional limit |
| `cursor` | `string` | No | Optional cursor |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_workflow_runs",
    "arguments": {
      "id": "id_example",
      "limit": 10,
      "cursor": "example_value"
    }
  }
}
```

***

### `get_workflow_run_details`

Retrieve detailed step execution logs for a workflow run.

* **Scope**: `workflows:read`
* **REST Route**: [`GET /api/v1/workflow/runs/{runId}`](https://docs.posttu.com/api-reference/workflow/get-run-details)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `runId` | `string` | **Yes** | Workflow run ID |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_workflow_run_details",
    "arguments": {
      "runId": "runId_example"
    }
  }
}
```

***

### `cancel_workflow_run`

Cancel an in-progress workflow execution run.

* **Scope**: `workflows:write`
* **REST Route**: [`POST /api/v1/workflow/runs/{runId}/cancel`](https://docs.posttu.com/api-reference/workflow/cancel-run)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `runId` | `string` | **Yes** | Workflow run ID to cancel |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cancel_workflow_run",
    "arguments": {
      "runId": "runId_example"
    }
  }
}
```

***

### `list_workflow_connections`

List configured third-party app connections for workflows.

* **Scope**: `workflows:read`
* **REST Route**: [`GET /api/v1/workflow/connections`](https://docs.posttu.com/api-reference/workflow/list-connections)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `pieceNames` | `string` | No | Comma-separated piece names to filter connections |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_workflow_connections",
    "arguments": {
      "pieceNames": "example_value"
    }
  }
}
```

***

### `list_pieces`

List available workflow integration triggers and actions.

* **Scope**: `workflows:read`
* **REST Route**: [`GET /api/v1/workflow/pieces`](https://docs.posttu.com/api-reference/workflow/list-pieces)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `search` | `string` | No | Optional search query filter |
| `category` | `string` | No | Optional piece category filter |
| `limit` | `number` | No | Optional max items per page |
| `cursor` | `number` | No | Optional pagination cursor |
| `excludeCore` | `boolean` | No | Exclude built-in core actions/triggers |
| `excludeActions` | `boolean` | No | Exclude action definitions |
| `excludeTriggers` | `boolean` | No | Exclude trigger definitions |
| `includeProps` | `boolean` | No | Include full property input schemas for each piece |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_pieces",
    "arguments": {
      "search": "example_value",
      "category": "example_value",
      "limit": 10,
      "cursor": 10,
      "excludeCore": false,
      "excludeActions": false,
      "excludeTriggers": false,
      "includeProps": false
    }
  }
}
```

***

### `get_piece`

Get detailed trigger and action metadata for an integration piece.

* **Scope**: `workflows:read`
* **REST Route**: [`GET /api/v1/workflow/pieces/{pieceName}`](https://docs.posttu.com/api-reference/workflow/get-piece)

#### Parameters

| Parameter | Type | Required | Description |
| :- | :- | :- | :- |
| `pieceName` | `string` | **Yes** | Piece name in lowercase snake\_case (e.g. ai, x, slack, rss\_feed) |

#### Example Tool Call

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_piece",
    "arguments": {
      "pieceName": "example_value"
    }
  }
}
```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.