Salesforce
v0.4.0Salesforce CRM MCP server: accounts, contacts, opportunities, leads, tasks, and custom objects
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
salesforce_connect_account
Connect a Salesforce account via OAuth. Takes no parameters — call with {}. Initiates OAuth flow — in standalone mode, opens a browser URL for Salesforce sign-in. In bridge mode, delegates to the host app. WHEN TO USE: - No Salesforce account is connected - Authentication errors from other tools - User asks to connect Salesforce After connecting, verify with salesforce_list_connected_accounts.
salesforce_list_connected_accounts
List connected Salesforce accounts. Takes no parameters — call with {}. Call this FIRST before any Salesforce CRM operations to verify authentication. This MCP instance operates on a single Salesforce account. If no account is connected, use salesforce_connect_account.
salesforce_disconnect_account
Disconnect a Salesforce account. Example: { "username": "user@company.com" } Accepts the account `ref` from salesforce_list_connected_accounts as well as the raw username. Permanently removes stored credentials. Use when switching accounts or troubleshooting.
| Parameter | Type | Description |
|---|---|---|
username * | string | Username or account ref of the account to disconnect |
salesforce_get_accounts
Get CRM accounts. Filters: name_contains, industry, account_type. Returns: Id, Name, Industry, Type, Phone, Website, Description. Max 200 records (default: 50).
| Parameter | Type | Description |
|---|---|---|
account_type | string | Filter by type (Customer, Partner, Competitor) |
fields | array | Custom fields (must be valid API names) |
industry | string | Filter by industry |
limit | integer | Max results 1-200 (default: 50) |
max_results | integer | Alias of limit. |
name_contains | string | Filter by name (case-insensitive) |
query | string | Alias of name_contains. |
salesforce_create_account
Create a CRM account. Required: name. Optional: industry, type, phone, website, description, fields.
| Parameter | Type | Description |
|---|---|---|
name * | string | Account name (required) |
description | string | Account description |
fields | object | Additional/custom fields as key-value pairs |
industry | string | Industry |
phone | string | Phone number |
type | string | Account type |
website | string | Website URL |
salesforce_update_account
Update a CRM account. Required: id. Updatable: name, industry, type, phone, website, description, fields.
| Parameter | Type | Description |
|---|---|---|
id * | string | Salesforce Account ID (required) |
description | string | Description |
fields | object | Additional/custom fields as key-value pairs |
industry | string | Industry |
name | string | Account name |
phone | string | Phone number |
type | string | Account type |
website | string | Website URL |
salesforce_get_contacts
Get contacts. Filters: name_contains, email_contains, related_account_id. Returns: Id, FirstName, LastName, Email, Phone, Title, AccountId. Max 200 (default: 50).
| Parameter | Type | Description |
|---|---|---|
email_contains | string | Filter by email |
fields | array | Custom fields (valid API names) |
limit | integer | Max results 1-200 (default: 50) |
name_contains | string | Filter by first or last name |
related_account_id | string | Filter by Account ID |
salesforce_create_contact
Create a contact. Required: last_name. Optional: first_name, email, phone, title, related_account_id, fields.
| Parameter | Type | Description |
|---|---|---|
last_name * | string | Last name (required) |
email | string | Email address |
fields | object | Additional/custom fields as key-value pairs |
first_name | string | First name |
phone | string | Phone number |
related_account_id | string | Account ID to associate with |
title | string | Job title |
salesforce_update_contact
Update a contact. Required: id. Updatable: first_name, last_name, email, phone, title, fields.
| Parameter | Type | Description |
|---|---|---|
id * | string | Salesforce Contact ID (required) |
email | string | Email address |
fields | object | Additional/custom fields as key-value pairs |
first_name | string | First name |
last_name | string | Last name |
phone | string | Phone number |
title | string | Job title |
salesforce_get_opportunities
Get opportunities. Filters: name_contains, stage, related_account_id, close_date_from, close_date_to. Dates must be YYYY-MM-DD. Max 200 (default: 50).
| Parameter | Type | Description |
|---|---|---|
account_id | string | Alias of related_account_id. |
close_date_from | string | Closing on/after date (YYYY-MM-DD) |
close_date_to | string | Closing on/before date (YYYY-MM-DD) |
fields | array | Custom fields |
limit | integer | Max results 1-200 (default: 50) |
name_contains | string | Filter by name |
related_account_id | string | Filter by Account ID |
stage | string | Filter by stage |
status | string | Alias of stage. |
salesforce_create_opportunity
Create an opportunity. Required: name, stage_name, close_date (YYYY-MM-DD). Optional: amount, related_account_id, description, fields.
| Parameter | Type | Description |
|---|---|---|
close_date * | string | Close date YYYY-MM-DD (required) |
name * | string | Opportunity name (required) |
stage_name * | string | Stage name (required) |
amount | number | Opportunity amount |
description | string | Description |
fields | object | Additional/custom fields as key-value pairs |
related_account_id | string | Account ID to associate with |
salesforce_update_opportunity
Update an opportunity. Required: id. Updatable: name, stage_name, close_date (YYYY-MM-DD), amount, description, fields.
| Parameter | Type | Description |
|---|---|---|
id * | string | Salesforce Opportunity ID (required) |
amount | number | Amount |
close_date | string | Close date YYYY-MM-DD |
description | string | Description |
fields | object | Additional/custom fields |
name | string | Opportunity name |
stage_name | string | Stage name |
salesforce_get_leads
Get leads. Filters: name_contains, company_contains, email_contains, status. Max 200 (default: 50).
| Parameter | Type | Description |
|---|---|---|
company_contains | string | Filter by company |
email_contains | string | Filter by email |
fields | array | Custom fields |
limit | integer | Max results 1-200 (default: 50) |
name_contains | string | Filter by name |
status | string | Filter by status |
salesforce_create_lead
Create a lead. Required: last_name, company. Optional: first_name, email, phone, title, status, fields.
| Parameter | Type | Description |
|---|---|---|
company * | string | Company name (required) |
last_name * | string | Last name (required) |
email | string | Email address |
fields | object | Additional/custom fields |
first_name | string | First name |
phone | string | Phone number |
status | string | Lead status |
title | string | Job title |
salesforce_convert_lead
Convert a lead into Account + Contact, and optionally an Opportunity. Required: lead_id. Optional: create_opportunity, opportunity_name.
| Parameter | Type | Description |
|---|---|---|
lead_id * | string | Lead ID to convert (required) |
create_opportunity | boolean | Create opportunity (default: true) |
opportunity_name | string | Name for new opportunity |
salesforce_update_lead
Update a lead. Required: lead_id. Updatable: first_name, last_name, company, email, phone, title, status, fields.
| Parameter | Type | Description |
|---|---|---|
lead_id * | string | Salesforce Lead ID (required) |
company | string | Company name |
email | string | Email address |
fields | object | Additional/custom fields |
first_name | string | First name |
last_name | string | Last name |
phone | string | Phone number |
status | string | Lead status |
title | string | Job title |
salesforce_get_tasks
Get tasks. Filters: subject_contains, status, priority, who_id, what_id, activity_date_from, activity_date_to. Max 200 (default: 50).
| Parameter | Type | Description |
|---|---|---|
activity_date_from | string | Filter tasks on/after date (YYYY-MM-DD) |
activity_date_to | string | Filter tasks on/before date (YYYY-MM-DD) |
fields | array | Custom fields |
limit | integer | Max results 1-200 (default: 50) |
priority | string | Filter by priority |
status | string | Filter by status |
subject_contains | string | Filter by subject |
what_id | string | Filter by WhatId (Account or Opportunity ID) |
who_id | string | Filter by WhoId (Contact or Lead ID) |
salesforce_create_task
Create a task. Required: subject. Optional: status, priority, who_id, what_id, activity_date, description, owner_id, fields.
| Parameter | Type | Description |
|---|---|---|
subject * | string | Task subject (required) |
activity_date | string | Due date (YYYY-MM-DD) |
description | string | Task description |
fields | object | Additional/custom fields |
owner_id | string | Owner User ID |
priority | string | Priority (High, Normal, Low) |
status | string | Task status (default: Not Started) |
what_id | string | Account or Opportunity ID |
who_id | string | Contact or Lead ID |
salesforce_update_task
Update a task. Required: id. Updatable: subject, status, priority, who_id, what_id, activity_date, description, owner_id, fields.
| Parameter | Type | Description |
|---|---|---|
id * | string | Salesforce Task ID (required) |
activity_date | string | Due date (YYYY-MM-DD) |
description | string | Description |
fields | object | Additional/custom fields |
owner_id | string | Owner User ID |
priority | string | Priority |
status | string | Task status |
subject | string | Task subject |
what_id | string | Account or Opportunity ID |
who_id | string | Contact or Lead ID |
salesforce_get_cases
Get support cases. Filters: subject_contains, status, priority, related_account_id, related_contact_id, is_closed. Returns: Id, CaseNumber, Subject, Status, Priority, Origin, Description, AccountId, ContactId, OwnerId, CreatedDate, ClosedDate. Max 200 (default: 50).
| Parameter | Type | Description |
|---|---|---|
fields | array | Custom fields (must be valid API names) |
is_closed | boolean | Filter by closed status |
limit | integer | Max results 1-200 (default: 50) |
priority | string | Filter by priority (High, Medium, Low) |
related_account_id | string | Filter by Account ID |
related_contact_id | string | Filter by Contact ID |
status | string | Filter by status (New, Working, Escalated, Closed) |
subject_contains | string | Filter by subject (case-insensitive) |
salesforce_create_case
Create a support case. Required: subject. Optional: status, priority, origin, description, related_account_id, related_contact_id, fields.
| Parameter | Type | Description |
|---|---|---|
subject * | string | Case subject (required) |
description | string | Case description |
fields | object | Additional/custom fields as key-value pairs |
origin | string | Case origin (Phone, Email, Web) |
priority | string | Priority (High, Medium, Low) |
related_account_id | string | Account ID to associate with |
related_contact_id | string | Contact ID to associate with |
status | string | Case status (default: New) |
salesforce_update_case
Update a support case. Required: id. Updatable: subject, status, priority, origin, description, related_account_id, related_contact_id, fields.
| Parameter | Type | Description |
|---|---|---|
id * | string | Salesforce Case ID (required) |
description | string | Description |
fields | object | Additional/custom fields as key-value pairs |
origin | string | Case origin |
priority | string | Priority (High, Medium, Low) |
related_account_id | string | Account ID to associate with |
related_contact_id | string | Contact ID to associate with |
status | string | Case status (e.g., Working, Escalated, Closed) |
subject | string | Case subject |
salesforce_get_events
Get calendar events. Filters: subject_contains, who_id, what_id, start_from, start_to. Dates accept YYYY-MM-DD (midnight UTC) or ISO 8601 datetimes. Returns: Id, Subject, StartDateTime, EndDateTime, Location, Description, WhoId, WhatId, OwnerId, IsAllDayEvent. Max 200 (default: 50).
| Parameter | Type | Description |
|---|---|---|
fields | array | Custom fields (must be valid API names) |
limit | integer | Max results 1-200 (default: 50) |
start_from | string | Events starting on/after this date or datetime (YYYY-MM-DD or ISO 8601; see tool description for an example) |
start_to | string | Events starting on/before this date or datetime (YYYY-MM-DD or ISO 8601) |
subject_contains | string | Filter by subject (case-insensitive) |
what_id | string | Filter by WhatId (Account or Opportunity ID) |
who_id | string | Filter by WhoId (Contact or Lead ID) |
salesforce_create_event
Create a calendar event. Required: subject, start_date_time, end_date_time. Optional: location, description, who_id, what_id, is_all_day_event, owner_id, fields. Datetimes must be ISO 8601 (e.g. "2026-01-09T14:30:00Z"); all-day events accept plain dates (YYYY-MM-DD).
| Parameter | Type | Description |
|---|---|---|
end_date_time * | string | End (required) — ISO 8601 datetime, or YYYY-MM-DD for all-day events |
start_date_time * | string | Start (required) — ISO 8601 datetime (see tool description for an example), or YYYY-MM-DD for all-day events |
subject * | string | Event subject (required) |
description | string | Event description |
fields | object | Additional/custom fields as key-value pairs |
is_all_day_event | boolean | All-day event (default: false) |
location | string | Event location |
owner_id | string | Owner User ID |
what_id | string | Account or Opportunity ID to relate |
who_id | string | Contact or Lead ID to invite/relate |
salesforce_search
Cross-object full-text search (SOSL). Use for "find anything mentioning X" requests — searches names, emails, and other indexed text fields at once. Requires search_term (or its alias query). Defaults to Account, Contact, Lead, Opportunity; pass objects to widen or narrow. Max 200 results; the response's "truncated" flag is true when more matches exist beyond the limit.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max total results 1-200 (default: 200) |
objects | array | Objects to search (default: Account, Contact, Lead, Opportunity) |
query | string | Alias of search_term. |
returnJson | boolean | Accepted and ignored — output is always JSON. |
search_term | string | Text to search for (min 2 characters); reserved SOSL characters are escaped automatically |
salesforce_get_notes
Get notes attached to a record (ContentNote linked via ContentDocumentLink). Required: parent_id (Account, Contact, Opportunity, Case, Lead, or any record ID). Returns note Id, Title, TextPreview, CreatedDate, OwnerId; set include_body=true to also return the full note text. Max 200 (default: 50).
| Parameter | Type | Description |
|---|---|---|
parent_id * | string | Record ID the notes are attached to (required) |
include_body | boolean | Include full note body text (default: false — returns title and preview only) |
limit | integer | Max results 1-200 (default: 50) |
salesforce_create_note
Create a note (ContentNote). Required: title, body. Optional: parent_id — a record ID to attach the note to (Account, Contact, Opportunity, Case, Lead, etc.).
| Parameter | Type | Description |
|---|---|---|
body * | string | Note body text (required) |
title * | string | Note title (required) |
parent_id | string | Record ID to attach the note to |
salesforce_get_campaigns
Get marketing campaigns. Filters: name_contains, campaign_type, status, is_active, start_date_from, start_date_to. Returns: Id, Name, Type, Status, IsActive, StartDate, EndDate, Description. Max 200 (default: 50).
| Parameter | Type | Description |
|---|---|---|
campaign_type | string | Filter by type (Email, Webinar, Advertisement) |
fields | array | Custom fields (must be valid API names) |
is_active | boolean | Filter by active status |
limit | integer | Max results 1-200 (default: 50) |
name_contains | string | Filter by name (case-insensitive) |
start_date_from | string | Campaigns starting on/after date (YYYY-MM-DD) |
start_date_to | string | Campaigns starting on/before date (YYYY-MM-DD) |
status | string | Filter by status (Planned, In Progress, Completed) |
salesforce_get_campaign_members
Get campaign members (leads/contacts in a campaign). Filters: campaign_id, lead_id, contact_id, status. Returns: Id, CampaignId, LeadId, ContactId, Status, CreatedDate. Max 200 (default: 50).
| Parameter | Type | Description |
|---|---|---|
campaign_id | string | Filter by Campaign ID |
contact_id | string | Filter by Contact ID |
fields | array | Custom fields (must be valid API names) |
lead_id | string | Filter by Lead ID |
limit | integer | Max results 1-200 (default: 50) |
status | string | Filter by member status (Sent, Responded) |
salesforce_run_report
Run an existing Salesforce report (Analytics REST API) and return its aggregated result. Required: report_id (the report's 15- or 18-character ID, visible in the report URL). Set include_details=true to include detail rows, not just groupings and aggregates.
| Parameter | Type | Description |
|---|---|---|
report_id * | string | Salesforce report ID (15 or 18 characters, from the report URL) |
include_details | boolean | Include detail rows in the result (default: false — groupings and aggregates only) |
salesforce_get_users
Get Salesforce users. Filters: name_contains, email_contains, role_contains, is_active. Max 200 (default: 50).
| Parameter | Type | Description |
|---|---|---|
email_contains | string | Filter by email |
fields | array | Custom fields |
is_active | boolean | Filter by active status |
limit | integer | Max results 1-200 (default: 50) |
name_contains | string | Filter by name |
role_contains | string | Filter by UserRole.Name |
salesforce_query
Execute a raw SOQL query. For advanced queries only — prefer dedicated tools for standard operations. Requires query (or its alias soql). Max 200 records enforced.
| Parameter | Type | Description |
|---|---|---|
query | string | SOQL query string |
soql | string | Alias of query. |
salesforce_describe_object
Get object metadata and field definitions. Returns field names, types, and required flags. Requires object_name (or its alias object). Common objects: Account, Contact, Opportunity, Lead, Case, Task.
| Parameter | Type | Description |
|---|---|---|
object | string | Alias of object_name. |
object_name | string | Object API name (Account, Contact, Opportunity, Lead, CustomObject__c) |
salesforce_list_objects
List available Salesforce sObjects. Default shows custom objects only. Set custom_only=false to include standard objects.
| Parameter | Type | Description |
|---|---|---|
custom_only | boolean | Show only custom objects (default: true) |
salesforce_create_record
Generic record creation for any Salesforce object. For standard objects, prefer dedicated tools.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Field-value pairs to set on the new record |
object_name * | string | sObject API name (e.g., Invoice__c, Case) |
salesforce_update_record
Generic record update for any Salesforce object. For standard objects, prefer dedicated tools. Requires id (or its alias record_id).
| Parameter | Type | Description |
|---|---|---|
fields * | object | Field-value pairs to update |
object_name * | string | sObject API name |
id | string | Salesforce record ID to update |
record_id | string | Alias of id. |
salesforce_get_records
Generic record query for any Salesforce object. Requires object_name (or its alias sobject). For standard objects, prefer dedicated get tools.
| Parameter | Type | Description |
|---|---|---|
fields | Fields to SELECT (defaults to Id); array or comma-separated string | |
filters | array | WHERE conditions (AND-joined) |
limit | integer | Max results 1-200 (default: 50) |
object_name | string | sObject API name |
record_id | string | Fetch one record by ID (adds an Id = ... condition) |
sobject | string | Alias of object_name. |