list_clients
Read-only
List clients with pagination, search and filters
get_client
Read-only
Get full details of a client by ID
create_client
Write
Create a new client
update_client
Write
Update an existing client
sync_clients
Write — external service
Synchronise clients from connected platforms (Stripe, Shopify, PayPal, PrestaShop). Returns a summary of how many clients were synced per platform.
delete_client
Write — destructive
Delete a client by ID
get_client_stats
Read-only
Get revenue and invoice statistics for a specific client
get_client_invoices
Read-only
Get all invoices for a specific client
search_business
Read-only
Search the French company registry (annuaire des entreprises gouv.fr) by SIRET, SIREN or company name. Returns legal name, SIREN/SIRET, APE code, VAT number (computed), address, and director. Use this to pre-fill a B2B client before creating it, or to find a SIRET to enrich an existing client.
create_business_client
Write
Create a B2B (business) client. An email is required (used as unique key). Provide the business identity (legalName, siret, vatNumber…) — tip: call search_business first to get accurate data. Optionally add multiple contacts (accounting, purchasing…) and payment terms (delayDays, creditLimit).
Addresses if you already have them (e.g. extracted from a business card). If omitted AND a SIRET is provided, the billing address is auto-fetched from the registry.
enrich_client_from_siret
Write
Turn an existing client into a B2B client by enriching it from a SIRET via the French company registry. Fills legalName, SIREN, VAT, APE, legal form, and adds the director as primary contact (if no manual contact exists). Preserves manually-entered contacts and payment terms.