Create client
Add a client with name, VAT number or tax code and address.
MCP tool fatture_in_cloud_write → create_client
write
Creates a client and returns its ID. For e-invoices, pass the e-invoice code or certified email. A client reaches nobody and can be deleted in Fatture in Cloud, so this call runs without asking first.
Parameters
| Name | Type | Description |
|---|---|---|
| company_id integer | integer | Company ID. Optional when your account has one company. |
| name string required | string | Client name. |
| vat_number string | string | VAT number. |
| tax_code string | string | Tax code. |
| address object | object | street, postal_code, city, province and country. |
| e_invoice_code string | string | E-invoice code (ei_code) of the client. |
| certified_email string | string | Certified email (PEC) of the client. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fatture_in_cloud_write",
"arguments": {
"operation": "create_client",
"arguments": {
"name": "Jane Doe"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"id": 5118,
"name": "Studio Verdi SRL",
"vat_number": "09876543210",
"e_invoice_code": "M5UXCR1"
},
"isError": false
}