Count records
count_recordsCount Odoo records that match a domain filter to verify totals and check query results. Specify a model and optional domain; an empty domain counts all records.
Instructions
Counts records matching a domain.
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>"
},
"name": "count_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Technical model name, e.g. "sale.order", "res.partner", "crm.lead" | |
| domain | No | Odoo domain, e.g. [["state","=","sale"],["amount_total",">",1000]]. Empty = all records. |