Create or update customer
save_customerCreate a new customer when no ID is given, or update existing customer fields; optionally add an address and manage group memberships.
Instructions
Without customer_id creates a customer (email required); with customer_id updates only the given fields. Can also add an address and add/remove the customer from groups.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| phone | No | ||
| metadata | No | Merged into existing metadata; an empty string deletes a key | |
| last_name | No | ||
| first_name | No | ||
| add_address | No | ||
| customer_id | No | ||
| company_name | No | ||
| add_to_groups | No | Customer group IDs to join | |
| remove_from_groups | No | Customer group IDs to leave |