Create contact
Add a customer or supplier with name, email and organisation number.
MCP tool fiken_write → create_contact
write
Adds one contact to Fiken and returns its contact_id and, for a customer, the customer number Fiken assigns. Run list_contacts first so you do not create a duplicate. create_contact runs without asking first: it sends nothing to anyone, books nothing, and the contact can be edited in Fiken afterwards.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Contact name, up to 200 characters. |
| role enum | enum | customer or supplier. Default: customer. |
| email string | string | Email address for invoices. |
| organisation_number string | string | Organisation number from Brønnøysundregistrene. |
| phone_number string | string | Phone number, needed to send invoices by SMS. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fiken_write",
"arguments": {
"operation": "create_contact",
"arguments": {
"name": "Jane Doe"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"contact_id": 4021190,
"name": "Fjord Studio AS",
"organisation_number": "987654321",
"email": "faktura@fjord.example",
"customer_number": 10004,
"supplier_number": null
},
"isError": false
}