Run a SOQL query
sf_soql_queryRun a SOQL query against Salesforce REST or Tooling API, returning records with pagination details to continue fetching more results.
Instructions
Execute a SOQL query against the org (Salesforce REST /query). Returns records plus done and nextRecordsUrl for pagination. Use sf_soql_query_more to fetch the next page. Example: SELECT Id, Name FROM Account LIMIT 10
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": {
"soql": "<soql>"
},
"name": "sf_soql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| soql | Yes | The SOQL query, e.g. "SELECT Id, Name FROM Account LIMIT 10". | |
| tooling | No | Query the Tooling API instead of the data API (for metadata objects). Default false. |