Create customer
Add a customer with name, type and contact details.
MCP tool bokio_write → create_customer
write
Creates a customer and returns its ID for create_invoice. type is company or individual. The customer reaches no one and can be removed in Bokio, so create_customer runs without asking first.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Customer name. |
| type string required | string | company or individual. |
| email string | string | Email address for invoices. |
| org_number string | string | Organisation number, for a company. |
| vat_number string | string | VAT number, for a company. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "bokio_write",
"arguments": {
"operation": "create_customer",
"arguments": {
"name": "Jane Doe",
"type": "type"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"customer_id": "c7a1e5d2-3b94-4f60-9a1d-5e2f0b8c6d11",
"name": "Nordlys Design AB",
"type": "company"
},
"isError": false
}