odoo_call
Call Odoo 19 External JSON-2 API methods to execute CRUD operations and custom methods on models, using named keyword arguments.
Instructions
Call one Odoo 19 External JSON-2 method: POST /json/2/{model}/{method}. Body is named kwargs only (ids, context, plus params). One SQL transaction per call.
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>",
"method": "<method>"
},
"name": "odoo_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Record ids for record methods (read, write, unlink, …). Omit for @api.model methods. | |
| debug | No | If true, include Odoo error.debug traceback on HTTP errors. Default false. | |
| model | Yes | Technical model name, e.g. res.partner | |
| method | Yes | Model method, e.g. search_read | |
| params | No | Extra named kwargs for the method: domain, fields, limit, offset, values, … Do not use positional args. | |
| context | No | Odoo context object, e.g. {"lang": "en_US"} |