Get client insights
get_client_insightsSummarizes the finalized invoices for one client (exact company name): count, total and average in cents, first and last invoice dates, the five most common line items with their latest price, and how many emails were sent. Use it to answer questions about a client or to pick prices for their next invoice. Read-only. Drafts are ignored, amounts in different currencies are added without conversion, and it returns an error when the client has no finalized invoice.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"recipientCompanyName": "<recipientCompanyName>"
},
"name": "get_client_insights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipientCompanyName | Yes | Client company name (exact match) |