Pipedrive Automation via Rube MCP
Automate Pipedrive CRM workflows including deal management, contact and organization operations, activity scheduling, notes, and pipeline/stage queries through Composio's Pipedrive toolkit.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Pipedrive connection via with toolkit
- Always call first to get current tool schemas
Setup
Get Rube MCP: Add
as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming responds
- Call with toolkit
- If connection is not ACTIVE, follow the returned auth link to complete Pipedrive OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Create and Manage Deals
When to use: User wants to create a new deal, update an existing deal, or review deal details in the sales pipeline.
Tool sequence:
PIPEDRIVE_SEARCH_ORGANIZATIONS
- Find existing org to link to the deal [Optional]
PIPEDRIVE_ADD_AN_ORGANIZATION
- Create organization if none found [Optional]
- - Find existing contact to link [Optional]
- - Create contact if none found [Optional]
PIPEDRIVE_GET_ALL_PIPELINES
- Resolve pipeline ID [Prerequisite]
- - Resolve stage ID within the pipeline [Prerequisite]
- - Create the deal with title, value, org_id, person_id, stage_id [Required]
- - Modify deal properties after creation [Optional]
PIPEDRIVE_ADD_A_PRODUCT_TO_A_DEAL
- Attach line items/products [Optional]
Key parameters:
- : Deal title (required for creation)
- : Monetary value of the deal
- : 3-letter ISO currency code (e.g., "USD")
- / : Numeric IDs for pipeline placement
- / : Link to organization and contact
- : "open", "won", or "lost"
- : Format YYYY-MM-DD
Pitfalls:
- is the only required field for ; all others are optional
- Custom fields appear as long hash keys in responses; use dealFields endpoint to map them
- requires the numeric of the deal
- Setting to "lost" requires also providing
2. Manage Contacts (Persons and Organizations)
When to use: User wants to create, update, search, or list contacts and companies in Pipedrive.
Tool sequence:
- - Search for existing person by name, email, or phone [Prerequisite]
- - Create new contact if not found [Required]
PIPEDRIVE_UPDATE_A_PERSON
- Modify existing contact details [Optional]
PIPEDRIVE_GET_DETAILS_OF_A_PERSON
- Retrieve full contact record [Optional]
PIPEDRIVE_SEARCH_ORGANIZATIONS
- Search for existing organization [Prerequisite]
PIPEDRIVE_ADD_AN_ORGANIZATION
- Create new organization if not found [Required]
PIPEDRIVE_UPDATE_AN_ORGANIZATION
- Modify organization properties [Optional]
PIPEDRIVE_GET_DETAILS_OF_AN_ORGANIZATION
- Retrieve full org record [Optional]
Key parameters:
- : Required for both person and organization creation
- : Array of objects with , , fields for persons
- : Array of objects with , , fields for persons
- : Link a person to an organization
- : 1 = owner only, 3 = entire company
- : Search term for SEARCH_PERSONS / SEARCH_ORGANIZATIONS (minimum 2 characters)
Pitfalls:
PIPEDRIVE_ADD_AN_ORGANIZATION
may auto-merge with an existing org; check response.additional_data.didMerge
- Email and phone fields are arrays of objects, not plain strings:
[{"value": "test@example.com", "label": "work", "primary": true}]
- wildcards like or are NOT supported; use
PIPEDRIVE_GET_ALL_PERSONS
to list all
- Deletion via
PIPEDRIVE_DELETE_A_PERSON
or PIPEDRIVE_DELETE_AN_ORGANIZATION
is soft-delete with 30-day retention, then permanent
3. Schedule and Track Activities
When to use: User wants to create calls, meetings, tasks, or other activities linked to deals, contacts, or organizations.
Tool sequence:
- or
PIPEDRIVE_GET_DETAILS_OF_A_DEAL
- Resolve linked entity IDs [Prerequisite]
PIPEDRIVE_ADD_AN_ACTIVITY
- Create the activity with subject, type, due date [Required]
PIPEDRIVE_UPDATE_AN_ACTIVITY
- Modify activity details or mark as done [Optional]
PIPEDRIVE_GET_DETAILS_OF_AN_ACTIVITY
- Retrieve activity record [Optional]
PIPEDRIVE_GET_ALL_ACTIVITIES_ASSIGNED_TO_A_PARTICULAR_USER
- List user's activities [Optional]
Key parameters:
- : Activity title (required)
- : Activity type key string, e.g., "call", "meeting", "task", "email" (required)
- : Format YYYY-MM-DD
- : Format HH:MM
- : Format HH:MM (e.g., "00:30" for 30 minutes)
- / / : Link to related entities
- : 0 = not done, 1 = done
Pitfalls:
- Both and are required for
PIPEDRIVE_ADD_AN_ACTIVITY
- must match an existing ActivityTypes key_string in the account
- is an integer (0 or 1), not a boolean
- Response includes
more_activities_scheduled_in_context
in additional_data
4. Add and Manage Notes
When to use: User wants to attach notes to deals, persons, organizations, leads, or projects.
Tool sequence:
- or
PIPEDRIVE_GET_DETAILS_OF_A_DEAL
- Resolve entity ID [Prerequisite]
- - Create note with HTML content linked to an entity [Required]
- - Modify note content [Optional]
- - List notes filtered by entity [Optional]
PIPEDRIVE_GET_ALL_COMMENTS_FOR_A_NOTE
- Retrieve comments on a note [Optional]
Key parameters:
- : Note body in HTML format (required)
- / / / / : At least one entity link required
- / : Filter pinned notes when listing
Pitfalls:
- is required and supports HTML; plain text works but is sanitized server-side
- At least one of , , , , or must be provided
- returns notes across all entities by default; filter with entity ID params
5. Query Pipelines and Stages
When to use: User wants to view sales pipelines, stages, or deals within a pipeline/stage.
Tool sequence:
PIPEDRIVE_GET_ALL_PIPELINES
- List all pipelines and their IDs [Required]
PIPEDRIVE_GET_ONE_PIPELINE
- Get details and deal summary for a specific pipeline [Optional]
- - List all stages, optionally filtered by pipeline [Required]
- - Get details for a specific stage [Optional]
PIPEDRIVE_GET_DEALS_IN_A_PIPELINE
- List all deals across stages in a pipeline [Optional]
PIPEDRIVE_GET_DEALS_IN_A_STAGE
- List deals in a specific stage [Optional]
Key parameters:
- : Pipeline or stage ID (required for single-item endpoints)
- : Filter stages by pipeline
- : 3-letter currency code or "default_currency" for converted totals
- : Set to 1 for deal summary in pipeline responses
Pitfalls:
PIPEDRIVE_GET_ALL_PIPELINES
takes no parameters; returns all pipelines
- returns stages for ALL pipelines unless is specified
- Deal counts in pipeline summaries use only when is set
Common Patterns
ID Resolution
Always resolve display names to numeric IDs before operations:
- Organization name -> org_id:
PIPEDRIVE_SEARCH_ORGANIZATIONS
with param
- Person name -> person_id: with param
- Pipeline name -> pipeline_id:
PIPEDRIVE_GET_ALL_PIPELINES
then match by name
- Stage name -> stage_id: with then match by name
Pagination
Most list endpoints use offset-based pagination:
- Use (offset) and (page size) parameters
- Check
additional_data.pagination.more_items_in_collection
to know if more pages exist
- Use
additional_data.pagination.next_start
as the value for the next page
- Default limit is ~500 for some endpoints; set explicitly for predictable paging
Known Pitfalls
ID Formats
- All entity IDs (deal, person, org, activity, pipeline, stage) are numeric integers
- Lead IDs are UUID strings, not integers
- Custom field keys are long alphanumeric hashes (e.g., "a1b2c3d4e5f6...")
Rate Limits
- Pipedrive enforces per-company API rate limits; bulk operations should be paced
PIPEDRIVE_GET_ALL_PERSONS
and PIPEDRIVE_GET_ALL_ORGANIZATIONS
can return large datasets; always paginate
Parameter Quirks
- Email and phone on persons are arrays of objects, not plain strings
- is numeric: 1 = owner only, 3 = entire company, 5 = specific groups
- on activities is integer 0/1, not boolean true/false
- Organization creation may auto-merge duplicates silently; check in response
- requires minimum 2 characters and does not support wildcards
Response Structure
- Custom fields appear as hash keys in responses; map them via the respective Fields endpoints
- Responses often nest data under in wrapped executions
- Search results are under , not top-level
Quick Reference
| Task | Tool Slug | Key Params |
|---|
| Create deal | | , , , |
| Update deal | | , , , |
| Get deal details | PIPEDRIVE_GET_DETAILS_OF_A_DEAL
| |
| Search persons | | , |
| Add person | | , , , |
| Update person | PIPEDRIVE_UPDATE_A_PERSON
| , , |
| Get person details | PIPEDRIVE_GET_DETAILS_OF_A_PERSON
| |
| List all persons | PIPEDRIVE_GET_ALL_PERSONS
| , , |
| Search organizations | PIPEDRIVE_SEARCH_ORGANIZATIONS
| , |
| Add organization | PIPEDRIVE_ADD_AN_ORGANIZATION
| , |
| Update organization | PIPEDRIVE_UPDATE_AN_ORGANIZATION
| , , |
| Get org details | PIPEDRIVE_GET_DETAILS_OF_AN_ORGANIZATION
| |
| Add activity | PIPEDRIVE_ADD_AN_ACTIVITY
| , , , |
| Update activity | PIPEDRIVE_UPDATE_AN_ACTIVITY
| , , |
| Get activity details | PIPEDRIVE_GET_DETAILS_OF_AN_ACTIVITY
| |
| List user activities | PIPEDRIVE_GET_ALL_ACTIVITIES_ASSIGNED_TO_A_PARTICULAR_USER
| , , |
| Add note | | , or |
| List notes | | , , , |
| List pipelines | PIPEDRIVE_GET_ALL_PIPELINES
| (none) |
| Get pipeline details | PIPEDRIVE_GET_ONE_PIPELINE
| |
| List stages | | |
| Deals in pipeline | PIPEDRIVE_GET_DEALS_IN_A_PIPELINE
| , |
| Deals in stage | PIPEDRIVE_GET_DEALS_IN_A_STAGE
| , , |
| Add product to deal | PIPEDRIVE_ADD_A_PRODUCT_TO_A_DEAL
| , , |