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

# Get available workflow filters

> MCP tool to retrieve available filter operators and logical operators for workflow filtering from the Thena platform.

import Admonition from '@theme/Admonition';

### MCP tool: `get_available_workflow_filters`

Retrieves available filter operators and logical operators that can be used in workflow filters. This tool helps you understand what filtering capabilities are available when configuring workflow triggers and conditions.

<Admonition type="note">
  This tool doesn't require any input parameters and returns all available filter operators and logical operators.
</Admonition>

### Example prompt

```prompt theme={null}
Get available workflow filters
```

<Admonition type="info">
  When you use this prompt in a chat with the model (with the MCP tool registered), the model will automatically call the <code>get\_available\_workflow\_filters</code> tool with the correct arguments.
</Admonition>

### Input parameters

This tool doesn't require any input parameters.

### Response fields

Below are the fields you may see in the response:

<table>
  <thead>
    <tr>
      <th>Field</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr><td>filterOperators</td><td>array</td><td>Available filter operators for comparing values</td></tr>
    <tr><td>logicalOperators</td><td>array</td><td>Available logical operators for combining conditions</td></tr>
    <tr><td>dataTypes</td><td>array</td><td>Supported data types for filter values</td></tr>
  </tbody>
</table>

#### Filter operator structure

Each filter operator contains:

| Field          | Type   | Description                                      |
| -------------- | ------ | ------------------------------------------------ |
| operator       | string | The operator symbol (e.g., "equals", "contains") |
| description    | string | Description of what the operator does            |
| supportedTypes | array  | Data types this operator supports                |

#### Logical operator structure

Each logical operator contains:

| Field       | Type   | Description                             |
| ----------- | ------ | --------------------------------------- |
| operator    | string | The operator symbol (e.g., "AND", "OR") |
| description | string | Description of what the operator does   |

### Sample response

```json theme={null}
{
  "data": {
    "filterOperators": [
      {
        "operator": "equals",
        "description": "Checks if the field value equals the specified value",
        "supportedTypes": ["string", "number", "boolean"]
      },
      {
        "operator": "not_equals",
        "description": "Checks if the field value does not equal the specified value",
        "supportedTypes": ["string", "number", "boolean"]
      },
      {
        "operator": "contains",
        "description": "Checks if the field value contains the specified substring",
        "supportedTypes": ["string"]
      },
      {
        "operator": "not_contains",
        "description": "Checks if the field value does not contain the specified substring",
        "supportedTypes": ["string"]
      },
      {
        "operator": "starts_with",
        "description": "Checks if the field value starts with the specified prefix",
        "supportedTypes": ["string"]
      },
      {
        "operator": "ends_with",
        "description": "Checks if the field value ends with the specified suffix",
        "supportedTypes": ["string"]
      },
      {
        "operator": "greater_than",
        "description": "Checks if the field value is greater than the specified value",
        "supportedTypes": ["number", "date"]
      },
      {
        "operator": "greater_than_or_equal",
        "description": "Checks if the field value is greater than or equal to the specified value",
        "supportedTypes": ["number", "date"]
      },
      {
        "operator": "less_than",
        "description": "Checks if the field value is less than the specified value",
        "supportedTypes": ["number", "date"]
      },
      {
        "operator": "less_than_or_equal",
        "description": "Checks if the field value is less than or equal to the specified value",
        "supportedTypes": ["number", "date"]
      },
      {
        "operator": "in",
        "description": "Checks if the field value is in the specified array of values",
        "supportedTypes": ["string", "number"]
      },
      {
        "operator": "not_in",
        "description": "Checks if the field value is not in the specified array of values",
        "supportedTypes": ["string", "number"]
      },
      {
        "operator": "is_null",
        "description": "Checks if the field value is null or undefined",
        "supportedTypes": ["any"]
      },
      {
        "operator": "is_not_null",
        "description": "Checks if the field value is not null or undefined",
        "supportedTypes": ["any"]
      },
      {
        "operator": "regex",
        "description": "Checks if the field value matches the specified regular expression",
        "supportedTypes": ["string"]
      }
    ],
    "logicalOperators": [
      {
        "operator": "AND",
        "description": "Combines multiple conditions - all must be true"
      },
      {
        "operator": "OR",
        "description": "Combines multiple conditions - at least one must be true"
      },
      {
        "operator": "NOT",
        "description": "Negates a single condition"
      }
    ],
    "dataTypes": [
      {
        "type": "string",
        "description": "Text values"
      },
      {
        "type": "number",
        "description": "Numeric values"
      },
      {
        "type": "boolean",
        "description": "True/false values"
      },
      {
        "type": "date",
        "description": "Date and time values"
      },
      {
        "type": "array",
        "description": "Arrays of values"
      }
    ]
  },
  "status": true,
  "message": "Available workflow filters retrieved successfully!",
  "timestamp": "2025-07-25T12:50:38.937Z"
}
```

<Admonition type="tip">
  Always pass an object as input, even if empty, to avoid errors when calling the tool directly.
</Admonition>

***
