ERP: Create or edit a client card
erp_client_saveCreate a client card or change one: name, phone, e-mail, Telegram, city, address, and/or add a note to it. 'client' = the name as said (an existing card of that name is edited; a name nobody has creates a new card — a card with the same name, phone or e-mail is refused as a duplicate, unless new_client=true); several matches are refused with candidates → ask, then organization_id. Only the fields the person named are sent. Proposed write: one card «Новий клієнт / Змінити клієнта» with before → after. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": "erp_client_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| note | No | A note to add to the card. | |
| No | |||
| phone | No | ||
| title | No | A new name for the card. | |
| client | No | ||
| address | No | ||
| telegram | No | ||
| new_client | No | ||
| organization_id | No |