run_soql_query
Execute SOQL queries against Salesforce to retrieve or aggregate data. Use column names in queries, such as Id for counts.
Instructions
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
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": {
"query": "<query>"
},
"name": "run_soql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |