filters_create
Create a new filter in Pipedrive to segment records like deals or contacts using customizable conditions and operators.
Instructions
Create a new filter in Pipedrive.
Adds a new filter with conditions. Returns the filter ID upon success.
IMPORTANT LIMITATIONS:
Only ONE first-level condition group is supported (must be glued with 'AND')
Only TWO second-level condition groups are supported
First second-level group must be glued with 'AND'
Second second-level group must be glued with 'OR'
Maximum of 16 conditions per filter
Workflow tips:
Use filters/helpers to discover available field IDs and operators
Structure: { glue: "and", conditions: [{ glue: "and", conditions: [...] }, { glue: "or", conditions: [...] }] }
Common operators: =, !=, <, >, <=, >=, LIKE, IN, IS NULL, IS NOT NULL
Filter types: deals, org, people, products, activities
Example simple filter: { "name": "High value deals", "type": "deals", "conditions": { "glue": "and", "conditions": [ { "glue": "and", "conditions": [ { "object": "deal", "field_id": "value", "operator": ">", "value": 10000 } ] }, { "glue": "or", "conditions": [null] } ] } }
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"type": "<type>",
"conditions": "<conditions>"
},
"name": "filters_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Filter name (required) | |
| type | Yes | Filter type (required) | |
| conditions | Yes | Filter conditions structure with glue and conditions array (required) |