mcp-salesforce
v0.1.3MCP 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
| Parameter | Type | Description |
|---|---|---|
query * | string |
run_sosl_search
Executes a SOSL search against Salesforce. Args: search: The SOSL search to execute (e.g., 'FIND {John Smith} IN ALL FIELDS')
| Parameter | Type | Description |
|---|---|---|
search * | 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')
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
action * | string | |
data | ||
method | string |
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
| Parameter | Type | Description |
|---|---|---|
action * | string | |
data | ||
method | string |
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
| Parameter | Type | Description |
|---|---|---|
path * | string | |
data | ||
method | string | |
params |