get_tax_summary
Calculate VAT and IRPF position for a period from Quipu invoices and expenses, returning output VAT, input VAT, balance, and withholdings. Avoid manual errors by deriving figures automatically.
Instructions
Work out the VAT and IRPF position for a period from the invoices and expenses recorded in Quipu. Give it a year and a quarter (or an explicit date range) and it returns output VAT charged on invoices, input VAT paid on expenses, the resulting balance, and withholdings. Use this instead of listing invoices and adding them up by hand: Quipu has no endpoint that returns tax models (130, 303, 111), so the figures must be derived, and doing the arithmetic in code avoids the mistakes that come from adding long lists token by token. Treat the result as an estimate for orientation, not as a filed return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date (YYYY-MM-DD), overrides quarter | |
| from | No | Start date (YYYY-MM-DD), overrides quarter | |
| year | No | Year, e.g. 2026 | |
| quarter | No | Quarter: 1, 2, 3 or 4. Ignored when `from` and `to` are provided |