# Search Workflows — Ironclad

> Searches Ironclad workflows using structured filters and/or Ironclad's native formula filter language. Use this to find a workflow's ID before Get Workflow or Update Workflow Attributes. The filter formula operates on attribute keys in…

- Key: `ironclad-search-workflows`
- Type: Action (Read-only)
- Version: 0.0.2
- App: Ironclad (`ironclad`) — https://pipedream.com/apps/ironclad.md
- This page (HTML): https://pipedream.com/apps/ironclad/actions/search-workflows
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/ironclad/actions/search-workflows/search-workflows.mjs

## Description

Searches Ironclad workflows using structured filters and/or Ironclad's native formula filter language. Use this to find a workflow's ID before **Get Workflow** or **Update Workflow Attributes**. The `filter` formula operates on attribute keys in `[brackets]` — run **Describe Workspace** first to see valid attribute keys. Formula operators: `Equals([attr], 'value')`, `NotEqual([attr], 'value')`, `Contains([attr], 'value')`, `IsEmpty([attr])`, `IsNotEmpty([attr])`, `LessThan([attr], value)` / `LessThanOrEqual([attr], value)`, `GreaterThan([attr], value)` / `GreaterThanOrEqual([attr], value)`, `Date(2026, 1, 1)` (year, month, day), `Today()`, `RelativeDate(Today(), -7, 'days')` (anchor - `Today()` or `Date(...)` -, offset, unit; unit is one of `days`, `weeks`, `months`, `years`), `And(cond1, cond2, ...)`, `Or(cond1, cond2, ...)`. String values support both single and double quotes. Worked examples: find by counterparty name `Contains([counterpartyName], 'Acme')`; find workflows with an agreement date in the last week `GreaterThan([agreementDate], RelativeDate(Today(), -7, 'days'))`; find workflows missing a signed copy `IsEmpty([signedCopy])`. Status and template are not formula-filterable properties — to find cancelled or completed workflows, set the `status` prop to `cancelled,completed`; to find workflows launched from a specific template, set the `template` prop instead of using `filter`. Example: set `status` to `"active"` and `pageSize` to `5` to retrieve the 5 most recently updated active workflows; returns `{"list": [{"id": "wf_xyz789", "title": "Acme NDA", "status": "active"}], "count": 1}`. [See the documentation](https://developer.ironcladapp.com/reference/list-all-workflows)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `filter` | `string` | No | Ironclad formula filter expression, e.g. Contains([counterpartyName], 'Acme'). See the tool description for the full operator list and worked examples. Optional — omit to list workflows without a formula filter. |
| `status` | `string` | No | Restrict results to workflows with this status. Valid values: active, paused, completed, cancelled. To match multiple statuses, pass a comma-separated list, e.g. cancelled,completed. |
| `template` | `string` | No | Restrict results to workflows launched from this template ID. Obtain via Describe Workspace. Options are loaded from the connected account. |
| `lastUpdated` | `string` | No | ISO 8601 date-time — restrict results to workflows updated at or after this timestamp, e.g. 2026-01-01T00:00:00Z. |
| `page` | `integer` | No | 0-indexed page of results. Increment and call again if count suggests more results than were returned. |
| `pageSize` | `integer` | No | Number of results per page. Defaults to Ironclad's standard page size if omitted. |
| `hydrateEntities` | `boolean` | No | Whether to expand referenced entities in each result. Defaults to false. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "ironclad",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "ironclad-search-workflows",
  arguments: {
    filter: "Filter",
    status: "Status",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "ironclad-search-workflows",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ironclad: { authProvisionId: "apn_xxxxxxx" },
    filter: "Filter",
    status: "Status",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "ironclad-search-workflows",
    "configured_props": {
      "ironclad": { "authProvisionId": "apn_xxxxxxx" },
      "filter": "Filter",
      "status": "Status"
    }
  }'
```

---

- App: https://pipedream.com/apps/ironclad.md · All apps: https://pipedream.com/apps
