Count Records
count_recordsCounts Odoo records in a specified model that match an optional domain filter, helping you verify totals or filtered results without retrieving full records.
Instructions
Count records in an Odoo model matching a domain filter.
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 | The technical name of the model (e.g., 'res.partner') | |
| domain | No | Optional domain filter (e.g., [['is_company', '=', True]]) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||