salesforce_rest_api
Makes generic REST calls to Salesforce endpoints not covered by other tools, using a relative path and HTTP method to query or modify org data.
Instructions
Make a generic REST API call to Salesforce. Use this for any endpoint not covered by other tools. The path is relative to the instance URL (e.g. '/services/data/v60.0/sobjects/Account/describe/layouts').
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"method": "<method>",
"path": "<path>"
},
"name": "salesforce_rest_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional JSON request body (as a string) for POST/PATCH/PUT requests | |
| path | Yes | The REST API path relative to the instance URL (e.g. /services/data/v60.0/sobjects/) | |
| method | Yes | HTTP method |