# Close your quarter by chat

**The job:** reach the end of the quarter and know how much VAT and income tax you owe, without wrestling spreadsheets. You ask your agent and it gives you the preview of your tax forms.

This works through the [Frihet MCP server](/desarrolladores/mcp-server), which knows the Spanish tax system (VAT, IGIC, IRPF income tax) and applies the rates for your fiscal zone. Requires [your agent connected](./conectar-tu-agente).

## Guided quarter prep

The fastest way is to invoke the full flow:

```
"Prepare Q1 taxes"
```

The agent runs the `quarterly-tax-prep` prompt: it gathers the period's invoices, calculates VAT/IGIC and generates the preview of Modelo 303 and Modelo 130.

## One-off queries

If you just want a number:

```
"Calculate my Modelo 303 for Q1"
"How much income tax (IRPF) do I owe this quarter?"
"When do I have to file taxes?"
```

The agent uses `get_quarterly_taxes` and the fiscal tools to return the breakdown. It automatically applies the right rates for your zone (mainland, Canary Islands with IGIC, Ceuta/Melilla).

## Monthly close, not just quarterly

```
"Run the monthly close for February"
```

The `monthly-close` prompt reviews unpaid invoices, checks that expenses are categorized, verifies tax obligations and generates a summary. It's the ideal step before the quarter to make everything add up without surprises.

## Important

The agent **prepares** the forms: it gives you the calculation and the preview. Filing with the tax authority is done by you (or your accountant) with those figures. Frihet does not file for you.

## What's behind it

The MCP's fiscal tools cover Modelo 303, 130, 390, 180 and 347, plus VeriFactu and TicketBAI status. Detail in [MCP server → Available tools](/desarrolladores/mcp-server#available-tools).

## Next

- [Check your fiscal status from your agent](./estado-fiscal)
- [Categorize your expenses by talking to AI](./categorizar-gastos)

More on taxes: [Modelo 303](/cumplimiento/modelo-303), [Modelo 130](/cumplimiento/modelo-130) and [Taxes with AI](/ia/impuestos-ia).
