mcp-salesforce

v0.1.3
mcp-salesforce Checked 2 days ago Published 1 year ago

MCP server for Salesforce

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

run_soql_query

Executes a SOQL query against Salesforce. Args: query: The SOQL query to execute When using this tool, always use a column name in the query. It is important when you aggregate or count. In this case use the Id column. example: select count(Id) from Account

ParameterTypeDescription
query *string

get_sobject_fields

Retrieves field Names, labels and types for a specific Salesforce object. if there is a lookup, the type is reference with the lookup table name and the fields name. Args: object_name: The name of the Salesforce object (e.g., 'Account', 'Contact')

ParameterTypeDescription
object_name *string

get_record

Retrieves a specific record by ID. Args: object_name: The name of the Salesforce object (e.g., 'Account', 'Contact') record_id: The ID of the record to retrieve

ParameterTypeDescription
object_name *string
record_id *string

create_record

Creates a new record. Args: object_name: The name of the Salesforce object (e.g., 'Account', 'Contact') data: The data for the new record

ParameterTypeDescription
data *object
object_name *string

update_record

Updates an existing record. Args: object_name: The name of the Salesforce object (e.g., 'Account', 'Contact') record_id: The ID of the record to update data: The updated data for the record

ParameterTypeDescription
data *object
object_name *string
record_id *string

delete_record

Deletes a record. Args: object_name: The name of the Salesforce object (e.g., 'Account', 'Contact') record_id: The ID of the record to delete

ParameterTypeDescription
object_name *string
record_id *string

tooling_execute

Executes a Tooling API request. Args: action: The Tooling API endpoint to call (e.g., 'sobjects/ApexClass') method: The HTTP method (default: 'GET') data: Data for POST/PATCH requests

ParameterTypeDescription
action *string
data
methodstring

apex_execute

Executes an Apex REST request. Args: action: The Apex REST endpoint to call (e.g., '/MyApexClass') method: The HTTP method (default: 'GET') data: Data for POST/PATCH requests

ParameterTypeDescription
action *string
data
methodstring

restful

Makes a direct REST API call to Salesforce. Args: path: The path of the REST API endpoint (e.g., 'sobjects/Account/describe') method: The HTTP method (default: 'GET') params: Query parameters for the request data: Data for POST/PATCH requests

ParameterTypeDescription
path *string
data
methodstring
params