Salesforce Cloud

v0.8.2
io.github.aaronsb/salesforce-cloud Checked 4 hours ago Published 3 months ago

AI-powered Salesforce CRM: opportunity intelligence, conversation analysis, SOQL, analytics

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

batch

Execute multiple operations in a single call with result references. Use $N.field to reference prior results (e.g., $0.id for the ID from operation 0). Destructive operations require confirm: true.

ParameterTypeDescription
operations *arrayList of operations to execute sequentially (max 16)
detailstringResponse detail level (default: summary)
onErrorstringError handling: bail (default) stops on first failure, continue executes remaining

analyze

Run analytics on any Salesforce object — group by categorical fields, aggregate numeric fields, and compute custom expressions. Uses field-type metadata for validation.

ParameterTypeDescription
object *stringSalesforce object API name (e.g., Opportunity, Account, Lead)
computearrayComputed expressions (max 5). Format: name = expr. E.g., ["win_rate = won / total * 100"]
filterstringSOQL WHERE clause (e.g., "StageName = 'Closed Won' AND Amount > 100000")
groupBystringField to group by (must be picklist, boolean, or similar categorical field)
maxGroupsnumberMax groups to return (default: 20)

analyze_conversation

Analyze conversation activity and engagement patterns for an opportunity. Extracts insights from Gong calls, emails, and other activities to provide engagement recommendations.

ParameterTypeDescription
opportunityId *stringThe ID of the Salesforce opportunity to analyze conversation activity for

generate_business_case

Generate a markdown business case report for an opportunity. Fetches opportunity details, contacts, conversation insights, and similar won deals to produce a complete report.

ParameterTypeDescription
opportunityId *stringThe ID of the Salesforce opportunity to generate a business case for
clientNamestringOptional client name to override the account name in the report title

enrich_opportunity

Enrich an opportunity with market intelligence, industry insights, and strategic recommendations based on similar deal patterns and best practices.

ParameterTypeDescription
opportunityId *stringThe ID of the Salesforce opportunity to enrich with intelligence
includeBestPracticesbooleanWhether to include industry-specific best practices (default: true)
includeCompetitiveIntelbooleanWhether to include competitive intelligence analysis (default: false)

find_similar_opportunities

Find opportunities similar to a reference opportunity or based on specific criteria. Includes pattern analysis and similarity scoring to identify market trends and success patterns.

ParameterTypeDescription
closeDateEndstringEnd date for close date range (YYYY-MM-DD)
closeDateStartstringStart date for close date range (YYYY-MM-DD)
includeAnalysisbooleanWhether to include pattern analysis and insights (default: true)
industrystringFilter by industry (e.g., "Information Technology & Services")
isWonbooleanFilter by won/lost status
limitnumberMaximum number of results to return (default: 50)
maxAmountnumberMaximum opportunity amount
minAmountnumberMinimum opportunity amount
referenceOpportunityIdstringOptional reference opportunity ID to find similar deals based on its characteristics
stagestringFilter by opportunity stage (e.g., "Closed Won", "Proposal")

opportunity_insights

Generate detailed insights and analytics from opportunity data including pipeline health, performance metrics, industry trends, and strategic recommendations.

ParameterTypeDescription
includeConversionRatesbooleanInclude stage conversion rate analysis (default: true)
includeIndustryTrendsbooleanInclude industry-specific performance trends (default: true)
includeOwnerPerformancebooleanInclude individual owner performance metrics (default: true)
includePipelineHealthbooleanInclude pipeline health and timing analysis (default: true)
includeStageAnalysisbooleanInclude stage distribution and conversion analysis (default: true)
industrystringFilter analysis to specific industry
maxAmountnumberMaximum opportunity amount for analysis
minAmountnumberMinimum opportunity amount for analysis
ownerstringFilter analysis to specific owner
timeframestringTime period for analysis

get_opportunity_details

Get detailed information about a Salesforce opportunity including all available fields (both standard and custom), related records, and metadata

ParameterTypeDescription
opportunityId *stringThe ID of the Salesforce opportunity to retrieve details for
detailstringResponse detail level (default: full)
fieldsarrayExplicit field names to return. Overrides intent if both provided.
intentstringBusiness intent — selects relevant fields automatically. Omit for all fields.

search_opportunities

Search for Salesforce opportunities by name, account, and stage. Returns matching opportunities ordered by close date. Results include both standard and custom fields.

ParameterTypeDescription
accountNamePatternstringPattern to match in Account Name. Example: "Ford" will match opportunities for "Ford" or "Ford Motor Company".
detailstringResponse detail level (default: summary)
namePatternstringPattern to match in Opportunity Name. Example: "Github" will match "Github Migration" or "My Github Project".
pageNumbernumberPage number to retrieve (default: 1)
pageSizenumberNumber of records per page (default: 25)
stagestringExact match for opportunity stage. Common values: "Proposal", "Qualification", "Negotiation", "Closed Won", "Closed Lost".

search_fields

Find the field(s) that carry a concept, when you know what you want to query but not the API name. Searches every scored field on the discovered objects — not just the promoted ones — across API names, labels, and help text, ranked by match strength. Searches the core objects by default; pass objectName to scope to one, which discovers it on demand. Set includeValues to get the value set for matched picklists, so you can write the WHERE clause without a second lookup. The match is lexical, not semantic: it finds fields whose name, label or help text contains the term, so a concept this org…

ParameterTypeDescription
term *stringWhat to look for, matched against field API names, labels, and help text (e.g. "ai", "renewal date", "region")
includeValuesbooleanInclude the active value set for matched picklist fields (default: false). Free — the values come from metadata already discovered.
limitnumberMaximum matches to return (default: 25, max: 100)
minPopulationPctnumberDrop fields populated on fewer than this percent of records (0-100). Omit to include sparsely-populated fields, which is often where custom flags live.
objectNamestringRestrict the search to one object (e.g. Opportunity). Omit to search all discovered core objects.

execute_soql

Execute a SOQL query. Supports both standard and custom fields (custom fields end with __c in their API names). To see which fields this org actually populates on an object, read the `salesforce://field-catalog/{objectName}` resource — it is ranked, far smaller than a full schema, and works for any object. That catalog is a usage filter rather than a field list: standard fields remain queryable whether or not they appear in it. Use describe_object when you want an object's complete schema.

ParameterTypeDescription
query *stringSOQL query to execute. For custom fields, use the API name (e.g., Project_Status__c)
detailstringResponse detail level (default: summary)
pageNumbernumberPage number to retrieve (default: 1)
pageSizenumberNumber of records per page (default: 25)

describe_object

Get an object's full metadata, including every standard and custom field when includeFields is true. Returns the complete schema — exhaustive but unranked, and large on customised objects. To find out which fields this org actually populates, read `salesforce://field-catalog/{objectName}` instead; it is ranked and far smaller.

ParameterTypeDescription
objectName *stringAPI name of the Salesforce object
includeFieldsbooleanWhether to include field metadata (default: false). When true, returns all available fields including custom fields, their types, and relationships.
intentstringBusiness intent — filters fields to only those relevant for this use case.
pageNumbernumberPage number to retrieve when includeFields is true (default: 1)
pageSizenumberNumber of fields per page when includeFields is true (default: 50)

create_record

Create a new record in Salesforce. Supports both standard and custom fields in the data object.

ParameterTypeDescription
data *objectRecord data as key-value pairs. For custom fields, use the API name with __c suffix (e.g., { "Name": "Test", "Custom_Field__c": "Value" })
objectName *stringAPI name of the Salesforce object

update_record

Update an existing record in Salesforce. Supports updating both standard and custom fields.

ParameterTypeDescription
data *objectRecord data to update as key-value pairs. For custom fields, use the API name with __c suffix (e.g., { "Custom_Field__c": "New Value" })
objectName *stringAPI name of the Salesforce object
recordId *stringID of the record to update

delete_record

Delete a record from Salesforce

ParameterTypeDescription
objectName *stringAPI name of the Salesforce object
recordId *stringID of the record to delete

get_user_info

Get information about the current user

download_file

Download a file from Salesforce. Accepts a ContentVersionId (068...) or ContentDocumentId (069...). Saves to a sandboxed workspace directory (default: ~/.local/share/salesforce-cloud-mcp/workspace/, configurable via SF_WORKSPACE_DIR). Text files (CSV, JSON, XML, TXT, etc.) also return content inline. Binary files return the saved path.

ParameterTypeDescription
contentId *stringContentVersionId (068...) or ContentDocumentId (069...). Find these by querying ContentDocumentLink: SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = '<recordId>'

list_objects

List all available Salesforce objects, including both standard and custom objects

ParameterTypeDescription
pageNumbernumberPage number to retrieve (default: 1)
pageSizenumberNumber of objects per page (default: 25)