Salesforce Sf Query
salesforce_sf_queryQuery Salesforce records using SOQL. Returns matching records with all requested fields. Use sf_describe first to learn available fields for your object.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "SELECT Id, Name, Industry FROM Account LIMIT 10"
},
"name": "salesforce_sf_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SOQL query (e.g., "SELECT Id, Name FROM Account LIMIT 10") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done | No | Whether all records have been returned | |
| error | No | Error code if connection failed | |
| message | No | Error message if connection failed | |
| records | No | Array of matching records | |
| totalSize | No | Total number of records matching query |