# Spain IRPF Calculator MCP for AI Agents AI Agent Connect

> Spain IRPF Calculator lets your AI client handle Spanish Personal Income Tax (IRPF) math. It calculates taxable bases, state quotas, regional modifiers, and personal deductions. Use it to get precise tax liabilities for different Autonomous Communities without manual spreadsheet work.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_NKciDYED5bDZkS2L7oeTQvBA1JhIjaudv2xC7Abw/ai-agent-connect
- **Tags:** spain, irpf, tax, calculator, finance

## Description

Handling Spanish tax law is a headache because of how different regions tweak the national rules. This Connector handles the math for you. Instead of manually hunting for regional brackets or trying to remember which family deductions apply to which situation, you just tell your agent what the numbers are. It separates general and savings income, applies the correct national brackets, and then layers on the specific rules for the user's Autonomous Community. It even factors in age and disability status to find the real net tax liability. It's a reliable way to get accurate results across different scenarios. By adding this to the Vinkius catalog, you're giving your agent a specialized engine that understands the nuances of Spanish fiscal policy. You get a clear picture of what's owed to the state versus the region, minus the personal reliefs.

## Tools

### calculate_taxable_bases
Determines the remaining taxable amounts for general and savings income pools. It handles deductions for both categories.

### compute_regional_tax
Calculates the extra tax liability for a specific Autonomous Community. This handles the regional modifiers automatically.

### get_final_tax_determination
Consolidates all previous calculations to show total gross and net liabilities. It gives you the final answer in one step.

### calculate_personal_reductions
Calculates tax relief based on age, dependents, and disability status. This ensures the final net liability is accurate.

### compute_state_quota
Finds the specific amount of tax owed to the Spanish national government. It isolates the state portion from regional rules.

## Prompt Examples

**Prompt:** 
```
Calculate the taxable bases for a gross general income of 30,000 and savings income of 5,000, with 2,000 in general deductions and 500 in savings deductions.
```

**Response:** 
```
Based on the figures provided, here are the taxable bases:

*   **Taxable General Base:** 28,000
*   **Taxable Savings Base:** 4,500
```

**Prompt:** 
```
What is the state tax liability for a taxable general base of 25,000?
```

**Response:** 
```
The calculated state tax liability for a taxable general base of 25,000 is **4,250**.
```

**Prompt:** 
```
Calculate the final tax determination if state liability is 4,000, regional liability is 500, total reductions are 1,200, and taxable general base is 25,000.
```

**Response:** 
```
Here is the final tax determination:

*   **Gross Tax Liability:** 4,500
*   **Net Tax Liability:** 3,300
```

## Capabilities

### Separate income pools
The tool splits your gross income into general and savings categories to apply the correct tax brackets.

### Calculate state quotas
It determines the specific amount of tax owed to the Spanish national government.

### Apply regional modifiers
The Connector adds the specific tax liability imposed by different Autonomous Communities.

### Determine personal relief
It calculates tax reductions based on your age, dependents, and disability status.

### Calculate net liability
You get the final gross and net tax figures in one consolidated result.

## Use Cases

### Comparing regional tax impacts
A consultant needs to show a client the difference between Madrid and Catalonia taxes. They ask the agent to run both scenarios using compute_regional_tax.

### Verifying payroll for new hires
An HR manager needs to verify the tax liability for a new hire with three children. They use calculate_personal_reductions to get the correct net amount.

### Freelance income modeling
A freelancer wants to know their net income after regional modifiers are applied. The agent uses calculate_taxable_bases to separate their savings.

### Retirement planning
A financial planner is modeling retirement income across different regions. They use get_final_tax_determination to see the net yearly payout.

## Benefits

- Stop manual bracket lookups by letting the Connector handle regional modifiers automatically for any Autonomous Community.
- Get precise taxable bases for both general and savings income using calculate_taxable_bases to ensure accuracy.
- Instantly see how family status affects the bottom line with calculate_personal_reductions for faster planning.
- Avoid errors in state vs. regional splits by using compute_state_quota and compute_regional_tax together.
- Get a final, consolidated tax determination in one step using get_final_tax_determination to save time.

## How It Works

The bottom line is you get accurate Spanish tax math without having to manually juggle regional rules.

1. Input the gross income, deductions, and the specific Autonomous Community.
2. The Connector processes the figures through national and regional tax brackets.
3. You get a complete breakdown of the final net tax liability.

## Frequently Asked Questions

**Can the Spain IRPF Calculator handle different Spanish regions?**
Yes. It automatically applies the specific modifiers for different Autonomous Communities so you don't have to look them up manually.

**Does the Spain IRPF Calculator include family deductions?**
It does. The tool factors in personal circumstances like dependents and age to calculate your total tax relief.

**Can I use the Spain IRPF Calculator to separate savings and general income?**
Yes. It correctly splits your income into general and savings pools to ensure the right tax brackets are applied to each.

**How accurate is the Spain IRPF Calculator for tax planning?**
It provides precise calculations based on Spanish tax law, making it a reliable way to model 'what-if' scenarios for different regions.

**Will the Spain IRPF Calculator show me my net tax liability?**
Yes. It consolidates all state, regional, and personal factors to give you the final net amount owed.

**How does the taxable base calculation work?**
The `calculate_taxable_bases` tool takes your gross general and savings income and subtracts any provided deductions. The resulting amounts represent the taxable bases for each category, ensuring neither falls below zero.

**Can I calculate regional taxes for specific Spanish communities?**
Yes. By using the `compute_regional_tax` tool with a valid `regionCode` (such as 'MAD' for Madrid or 'CAT' for Catalonia), you can calculate the additional tax liability imposed by that specific Autonomous Community.

**Does the tool account for personal and family reductions?**
Yes, the `calculate_personal_reductions` tool calculates tax relief based on the taxpayer's age, number of dependents, and degree of disability to help determine the final net tax liability.