Read records by ID
read_recordsFetch specific Odoo records by model and record IDs, optionally choosing fields, so you can query exact data instead of scanning entire models.
Instructions
Reads specific records by their IDs.
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>",
"ids": "<ids>"
},
"name": "read_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| model | Yes | Technical model name, e.g. "sale.order", "res.partner", "crm.lead" | |
| fields | No |