odoo_aggregate
Aggregate Odoo records into read-only grouped totals and counts by specified fields, using domains and limits to summarize data for analysis and reporting.
Instructions
Aggregate records (read_group): totals and counts grouped by fields. Read-only.
Example: model='sale.order', groupby=['state'], fields=['amount_total:sum'].
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": {
"model": "<model>",
"groupby": "<groupby>"
},
"name": "odoo_aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| model | Yes | ||
| domain | No | ||
| fields | No | ||
| groupby | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |