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

Parameters: create_contact
NameTypeDescription
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

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "odoo_write",
    "arguments": {
      "operation": "create_contact",
      "arguments": {
        "name": "Jane Doe"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "contact_id": 944,
    "name": "Harbor Print",
    "email": "accounts@harborprint.example",
    "is_company": true
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.