Create a contact
Add a customer contact, a person or a company.
MCP tool odoo_write → create_contact
write
Creates one contact and returns its ID. It reaches nobody and sends no email, and you can archive the contact in Odoo with one click, so it does not wait for your OK. Check list_contacts first: this call does not stop you from creating a duplicate.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Contact name. |
| email string | string | Email address, used when you send an invoice. |
| phone string | string | Phone number. |
| is_company boolean | boolean | true: a company. Default: false. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "odoo_write",
"arguments": {
"operation": "create_contact",
"arguments": {
"name": "Jane Doe"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"contact_id": 944,
"name": "Harbor Print",
"email": "accounts@harborprint.example",
"is_company": true
},
"isError": false
}