Count Odoo records
count_recordsCount Odoo records matching a domain filter without transferring record data, enabling quick size checks before queries or updates.
Instructions
Count the records matching a domain (cheap; no data is transferred).
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. 'res.partner', 'sale.order', 'account.move'. | |
| domain | No | Odoo domain: a list of [field, operator, value] conditions, optionally combined with '&', '|', '!' in prefix notation. Conditions are AND-ed by default. Example: [["customer_rank", ">", 0], ["country_id.code", "=", "IN"]]. Omit or pass [] to match all records. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||