odoo_connect
Add or update a connection to an Odoo instance. Supports password or API key authentication, and XML-RPC or JSON-RPC protocols.
Instructions
Add/update an Odoo connection. Auth via password or API key. Protocol: xmlrpc (Odoo 8+) or jsonrpc (Odoo 14+).
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": {
"url": "<url>",
"db": "<db>",
"username": "<username>"
},
"name": "odoo_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | Database name | |
| url | Yes | Odoo URL (e.g. http://localhost:8069) | |
| alias | No | Connection name (e.g. 'production', 'staging') | default |
| api_key | No | API key (Odoo 14+, alternative to password) | |
| password | No | Password (or leave empty if using api_key) | |
| protocol | No | xmlrpc | |
| username | Yes | Login username | |
| verify_ssl | No | True = standard CA verification (default). False = allow self-signed. On first use the peer cert is fetched and pinned under /data/ssl_certs/<alias>.pem for subsequent calls (trust-on-first-use). Set False for on-prem clients with private CA or self-issued certs. |