analyze
Run analytics on any Salesforce object by grouping categorical fields, aggregating numeric values, and computing custom expressions to derive insights.
Instructions
Run analytics on any Salesforce object — group by categorical fields, aggregate numeric fields, and compute custom expressions. Uses field-type metadata for validation.
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": {
"object": "<object>"
},
"name": "analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | SOQL WHERE clause (e.g., "StageName = 'Closed Won' AND Amount > 100000") | |
| object | Yes | Salesforce object API name (e.g., Opportunity, Account, Lead) | |
| compute | No | Computed expressions (max 5). Format: name = expr. E.g., ["win_rate = won / total * 100"] | |
| groupBy | No | Field to group by (must be picklist, boolean, or similar categorical field) | |
| maxGroups | No | Max groups to return (default: 20) |