LeadSquared MCP by usefulapi

v1.2.1
io.usefulapi/leadsquared Checked 2 days ago Published 1 day ago

Search 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.

ParameterTypeDescription
text *stringThe 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.

ParameterTypeDescription
lead_id *stringThe 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.

ParameterTypeDescription
lookup_name *stringSchema name of the lead field, for example EmailAddress, FirstName or CreatedOn.
lookup_value *stringThe value to compare with, for example 2026-01-01 00:00:00 for a date.
sql_operator *stringComparison operator: =, <>, >, <, >=, <=, LIKE, or NOT LIKE.
columnsstringComma-separated field names to return, for example ProspectID,FirstName,EmailAddress.
page_indexintegerPage number, starting at 1 (default 1).
page_sizeintegerResults 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.

ParameterTypeDescription
lead_id *stringThe 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.

ParameterTypeDescription
lead_id *stringThe lead's ProspectID (a GUID), from a lead search or lead lookup.
activity_eventintegerActivity event code, for example 201 for a custom activity. Omit for all types.
offsetintegerPage number, starting at 0 (default 0).
row_countintegerActivities 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.

ParameterTypeDescription
lead_id *stringThe lead's ProspectID (a GUID), from a lead search or lead lookup.
opportunity_typestringOpportunity type code. Omit for all types.
page_indexintegerPage number, starting at 1 (default 1).
page_sizeintegerResults 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.

ParameterTypeDescription
fields *arrayThe lead fields to set.
search_bystringField 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.

ParameterTypeDescription
activity_event *integerActivity event code of the activity type, for example 201 for a custom activity.
lead_id *stringThe lead's ProspectID (a GUID), from a lead search or lead lookup.
note *stringText of the activity note.
activity_datetimestringWhen the activity happened, as yyyy-mm-dd hh:mm:ss in the account time zone.