invoice_stats
Count this company's documents, and compare recent days.
The answer to "how many invoices this month", "how much did I
bill" and "is rejection going up": totals by document type and
by status over everything, then issued and rejected counts and
the amount for the last days beside the days before them,
and one row per day. In the connection's environment only.
Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "invoice_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | The window compared with the one before it, in days. 30 by default. | |
| company_id | No | UUID of the company acted for. Omit for a single company; else see list_authorized_companies. Send one, never both. | |
| company_tax_id | No | CNPJ or CPF of the company acted for, never the recipient or a taxpayer looked up. Omit for a single company; else see list_authorized_companies. Send one, never both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| by_status | No | ||
| period_days | No | ||
| daily_series | No | One row per day: date, count, amount. | |
| current_period | No | ||
| previous_period | No | ||
| by_document_type | No |