salesforce_query
Last resort. Use only when salesforce_find_records_smart, salesforce_summarize_records, or salesforce_get_record_overview cannot express the question (for example multi-field GROUP BY, HAVING, or semi-joins).
Call salesforce_explore_schema first for exact object and field API names.
Parameters
Returns
One page of rows. Structured data includes full ids and each row’sweb_url. Add filters or a LIMIT in the SOQL for large results.
Example use
“Run this SOQL: select StageName, count(Id) from Opportunity where IsClosed = false group by StageName having count(Id) > 5”