Create a company
create_companyChanges data: adds a supplier, forwarder or customer to the organization, as the person who connected this app, and records it in the organization's audit log. Use it only when the user asks to add a company (or to sync one from their ERP), and say what you are about to add first. Look it up with list_companies (query for a name, erp_code for an ERP code) before creating one: a name the organization already has, as a company's name or one of its other spellings, is refused with an error that names the existing company, and nothing is created, so use that company instead. An erp_code is not unique, so looking a company up by it may return several. Answers with the company and its id such as "cmp_12". To change one use update_company; merging and deleting companies are done in Trackberry only.
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_company"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The company's name as its documents write it, such as "Progum Co., Ltd". | |
| roles | No | What it is to the organization: any of supplier, forwarder, customer. Omit when unknown; a document later sets it. | |
| country | No | Two-letter ISO 3166 country code such as "PE". | |
| erp_code | No | The company's code in the organization's ERP, so list_companies can find it by that code. |