Call any Salesforce REST endpoint
sf_rest_requestCall any Salesforce REST endpoint with any HTTP method on /services/data/vXX paths. Use for endpoints not covered by other tools.
Instructions
Generic REST explorer (like Salesforce Inspector's REST Explorer). Call any path under /services/data/vXX with any method. Paths may be relative (e.g. "/sobjects/Account/describe") or absolute (e.g. "/services/data/v66.0/limits"). Use this for endpoints not covered by the other tools.
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": "sf_rest_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body for POST/PATCH/PUT. | |
| path | Yes | Path relative to /services/data/vXX, or an absolute /services/data/... path. | |
| method | Yes | HTTP method. | |
| headers | No | Additional request headers. |