Skip to main content
Glama

Multilead Open API MCP Server

by vanman2024

get_leads_from_campaign

Retrieve and filter leads from specific campaigns using advanced criteria including status, email verification, company, occupation, and connection status with pagination support.

Instructions

Retrieve leads from a specific campaign with advanced filtering

Supports 7 groups of filters with OR logic within groups and AND logic between groups:

  1. Advanced filters (name, company, occupation, headline)

  2. Status filters (status, connection degree, out of office)

  3. Email verification filters

  4. Current step filter

  5. Selected leads filter

  6. Step change timestamp filter

  7. General search filter

Args: user_id: The ID of the user account_id: The ID of the account (seat) campaign_id: The ID of the campaign search: Search leads by fullName, email, company, headline, etc. filter_by_verified_emails: Filter leads with verified emails filter_by_not_verified_emails: Filter leads without verified emails filter_by_status: Filter by status ([1]=Discovered, [2]=Connection pending, [3]=Connected not replied, [4]=Replied) filter_by_connection_degree: Used with filter_by_status=[4] for additional status filtering ([1]=replied connected, [2,3]=replied not connected) filter_by_current_step: Filter leads on specific campaign steps filter_by_name: Filter leads whose names contain this value filter_by_company: Filter leads whose company contains this value filter_by_occupation: Filter leads whose occupation contains this value filter_by_headline: Filter leads whose headline contains this value filter_by_out_of_office: Filter leads with "Out of office" status filter_by_step_change_timestamp: Filter leads with stepChangeTimestamp greater than this filter_by_selected_leads: Retrieve specific leads by their IDs limit: Number of results to return (default: 30) offset: Pagination offset (default: 0)

Returns: List of leads matching the filter criteria with pagination metadata

Example: get_leads_from_campaign( user_id="123", account_id="456", campaign_id="789", filter_by_status=[4], filter_by_connection_degree=[1], filter_by_verified_emails=True, limit=50 )

Input Schema

NameRequiredDescriptionDefault
user_idYes
account_idYes
campaign_idYes
searchNo
filter_by_verified_emailsNo
filter_by_not_verified_emailsNo
filter_by_statusNo
filter_by_connection_degreeNo
filter_by_current_stepNo
filter_by_nameNo
filter_by_companyNo
filter_by_occupationNo
filter_by_headlineNo
filter_by_out_of_officeNo
filter_by_step_change_timestampNo
filter_by_selected_leadsNo
limitNo
offsetNo

Input Schema (JSON Schema)

{ "properties": { "account_id": { "type": "string" }, "campaign_id": { "type": "string" }, "filter_by_company": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null }, "filter_by_connection_degree": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null }, "filter_by_current_step": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null }, "filter_by_headline": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null }, "filter_by_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null }, "filter_by_not_verified_emails": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null }, "filter_by_occupation": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null }, "filter_by_out_of_office": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null }, "filter_by_selected_leads": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null }, "filter_by_status": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null }, "filter_by_step_change_timestamp": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null }, "filter_by_verified_emails": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null }, "limit": { "default": 30, "type": "integer" }, "offset": { "default": 0, "type": "integer" }, "search": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null }, "user_id": { "type": "string" } }, "required": [ "user_id", "account_id", "campaign_id" ], "type": "object" }

Other Tools from Multilead Open API MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/vanman2024/multilead-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server