create_contact
Create a contact and link it to a customer or supplier by providing their ID. Include name, email, phone, position, and set as primary if needed.
Instructions
Create a contact attached to a customer or supplier.
Polymorphic association via contactable_type ("Customer" | "Supplier")
and contactable_id attributes.
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": {
"name": "<name>"
},
"name": "create_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Contact name. | |
| No | Email address. | ||
| position | No | Job title / role. | |
| categories | No | Contact categories (e.g. ['general']). Defaults to ['general'] if omitted. | |
| is_primary | No | Whether this is the primary contact. | |
| customer_id | No | Attach to a customer. Provide exactly one of customer_id or supplier_id. | |
| supplier_id | No | Attach to a supplier. Provide exactly one of customer_id or supplier_id. | |
| phone_number | No | Landline / main phone. | |
| mobile_number | No | Mobile phone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||