LeadSquared MCP by usefulapi
v1.2.1Search leads, list their tasks; create or update leads and post activities in LeadSquared.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
leadsquared_quick_search_leads Quick search leads
Find leads whose first name, last name, email, phone, mobile, company, city or country contains a text. Same as the Quick Search box in LeadSquared. GET LeadManagement.svc/Leads.GetByQuickSearch.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to find, for example an email address or a surname. |
leadsquared_get_lead Get lead
Return one lead's details (name, email, phone, owner, custom fields) by ProspectID. Returns an empty list when the id does not exist. GET LeadManagement.svc/Leads.GetById.
| Parameter | Type | Description |
|---|---|---|
lead_id * | string | The lead's ProspectID (a GUID), from a lead search or lead lookup. |
leadsquared_search_leads Search leads by criteria
Find leads where one lead field matches a value, for example CreatedOn after a date, or EmailAddress equal to an address. Pass the field's schema name (LookupName) and the operator (SqlOperator, for example = or > or LIKE). POST LeadManagement.svc/Leads.Get.
| Parameter | Type | Description |
|---|---|---|
lookup_name * | string | Schema name of the lead field, for example EmailAddress, FirstName or CreatedOn. |
lookup_value * | string | The value to compare with, for example 2026-01-01 00:00:00 for a date. |
sql_operator * | string | Comparison operator: =, <>, >, <, >=, <=, LIKE, or NOT LIKE. |
columns | string | Comma-separated field names to return, for example ProspectID,FirstName,EmailAddress. |
page_index | integer | Page number, starting at 1 (default 1). |
page_size | integer | Results per page (default 100). |
leadsquared_get_lead_tasks Get lead tasks
List the tasks (follow-ups, calls, to-dos) created against one lead. GET LeadManagement.svc/RetrieveTaskByLeadId.
| Parameter | Type | Description |
|---|---|---|
lead_id * | string | The lead's ProspectID (a GUID), from a lead search or lead lookup. |
leadsquared_get_lead_activities Get lead activities
List the activities (calls, emails, notes, custom activities) of one lead, newest data included. Pass an activity_event code to keep one type only. POST ProspectActivity.svc/Retrieve.
| Parameter | Type | Description |
|---|---|---|
lead_id * | string | The lead's ProspectID (a GUID), from a lead search or lead lookup. |
activity_event | integer | Activity event code, for example 201 for a custom activity. Omit for all types. |
offset | integer | Page number, starting at 0 (default 0). |
row_count | integer | Activities per page (default 10, max 25). |
leadsquared_get_lead_opportunities Get lead opportunities
List the opportunities linked to one lead, with their fields. Pass opportunity_type to keep one opportunity type only. POST OpportunityManagement.svc/GetOpportunitiesOfLead.
| Parameter | Type | Description |
|---|---|---|
lead_id * | string | The lead's ProspectID (a GUID), from a lead search or lead lookup. |
opportunity_type | string | Opportunity type code. Omit for all types. |
page_index | integer | Page number, starting at 1 (default 1). |
page_size | integer | Results per page (default 100). |
leadsquared_list_users List users
List the users of the LeadSquared account (name, email, role, active status). Use it to find an owner's user id. GET UserManagement.svc/Users.Get.
leadsquared_create_or_update_lead Create or update lead
Create a lead, or update the lead that already has this email address or phone number. Pass the fields as name and value pairs using schema names, for example FirstName, LastName, EmailAddress, Phone, Company. POST LeadManagement.svc/Lead.CreateOrUpdate.
| Parameter | Type | Description |
|---|---|---|
fields * | array | The lead fields to set. |
search_by | string | Field to match an existing lead on, for example EmailAddress or Phone. Default: email, then phone. |
leadsquared_post_lead_activity Post activity on lead
Add an activity (for example a note or a custom activity) to one lead. Each call adds a new activity: it is not idempotent. POST ProspectActivity.svc/Create.
| Parameter | Type | Description |
|---|---|---|
activity_event * | integer | Activity event code of the activity type, for example 201 for a custom activity. |
lead_id * | string | The lead's ProspectID (a GUID), from a lead search or lead lookup. |
note * | string | Text of the activity note. |
activity_datetime | string | When the activity happened, as yyyy-mm-dd hh:mm:ss in the account time zone. |