Create relation
Add a customer or supplier with name, address, email, VAT number and IBAN.
MCP tool e_boekhouden_write → create_relation
write
Creates one relation. Only name is required; type defaults to business (B) and the code is generated if you leave it out. It reaches nobody and is undone in one call with update_relation (set inactive), so it does not wait for your OK. Check list_relations first so you do not create a duplicate.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Company or person name. |
| type enum | enum | B (business) or P (private). Default: B. |
| address string | string | Primary address. |
| postal_code string | string | Primary postal code. |
| city string | string | Primary city. |
| country string | string | Primary country. |
| email string | string | Email address. |
| email_invoice string | string | Email address for invoices. |
| vat_number string | string | VAT number. |
| iban string | string | IBAN. |
| term_of_payment integer | integer | Default payment term in days. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "e_boekhouden_write",
"arguments": {
"operation": "create_relation",
"arguments": {
"name": "Jane Doe"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"relation_id": 1071,
"code": "KRT001",
"type": "B",
"name": "Kraan Tuinen VOF",
"inactive": false
},
"isError": false
}