Skip to main content
Glama

Spain Salary and Income Tax Calculator

Gross salary needed for a net amount in Spain

gross_for_target_net
Read-onlyIdempotent

The gross yearly salary in Spain that leaves a given take-home pay, with the same situation options as net_salary. Use it to set a salary ask or check an offer.

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": {
      "net_target": "<net_target>"
    },
    "name": "gross_for_target_net"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoAge; changes the result here (young-worker reliefs, senior slabs, surcharges). Default 35.
jointNoJoint return with spouse (no income of their own) Default false.
periodNoWhether net_target is per year or per month. Default year.
regionNoRegion. Basque Country and Navarre run their own tax systems and are not covered.: madrid = Madrid; catalonia = Catalonia (Barcelona); andalusia = Andalusia (Málaga, Seville); valencia = Valencia (Alicante). Default madrid.
under3NoChildren under 3. Counted within the number of children above. (children). Default 0.
beckhamNoBeckham regime (inbound worker). Flat 24% on Spanish employment income up to €600,000 for six years. Default false.
marriedNoMarried or registered partner. Default false.
childrenNoNumber of dependent children. Default 0.
contractNoContract: permanent = Permanent; temporary = Fixed-term (temporary). Default permanent.
tax_yearNoTax year. Offered: 2026 (final), 2025 (final). Default 2026. A year that is not listed is not available for this country.
parents65NoParents or grandparents over 65 living with you (people). Default 0.
parents75NoOf those, over 75 (people). Default 0.
disabilityNoYour recognised disability: none = None; some = 33% to 64%; high = 65% or more. Default none.
flex_mealsNoMeal vouchers or card (a year). Part of your gross pay received this way. Tax free up to €11 per working day. (€ / year). Default 0.
net_targetYesTake-home pay wanted, in EUR
flex_healthNoHealth insurance paid from pay (a year). Tax free up to €500 for each person insured. (€ / year). Default 0.
pension_pctNoVoluntary employee pension contribution through payroll, % of salary. Default 0.
bonus_annualNoYearly bonus in EUR. Default 0.
spouse_incomeNoPartner's gross yearly income in EUR, for joint taxation and spouse allowances. Default 0.
flex_transportNoTransport card (a year). Tax free up to €1,500. (€ / year). Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / contract
      Added value: +{
      +  "description": "Contract: permanent = Permanent; temporary = Fixed-term (temporary). Default permanent.",
      +  "enum": [
      +    "permanent",
      +    "temporary"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / disability
      Added value: +{
      +  "description": "Your recognised disability: none = None; some = 33% to 64%; high = 65% or more. Default none.",
      +  "enum": [
      +    "none",
      +    "some",
      +    "high"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / flex_health
      Added value: +{
      +  "description": "Health insurance paid from pay (a year). Tax free up to €500 for each person insured. (€ / year). Default 0.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / flex_meals
      Added value: +{
      +  "description": "Meal vouchers or card (a year). Part of your gross pay received this way. Tax free up to €11 per working day. (€ / year). Default 0.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / flex_transport
      Added value: +{
      +  "description": "Transport card (a year). Tax free up to €1,500. (€ / year). Default 0.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / parents65
      Added value: +{
      +  "description": "Parents or grandparents over 65 living with you (people). Default 0.",
      +  "maximum": 4,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / parents75
      Added value: +{
      +  "description": "Of those, over 75 (people). Default 0.",
      +  "maximum": 4,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / pension_pct
      Added value: +{
      +  "description": "Voluntary employee pension contribution through payroll, % of salary. Default 0.",
      +  "maximum": 50,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / under3
      Added value: +{
      +  "description": "Children under 3. Counted within the number of children above. (children). Default 0.",
      +  "maximum": 6,
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / tax_year
      Added value: +{
      +  "description": "Tax year. Offered: 2026 (final), 2025 (final). Default 2026. A year that is not listed is not available for this country.",
      +  "enum": [
      +    2026,
      +    2025
      +  ],
      +  "type": "integer"
      +}
  3. First observed

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is fully covered and the description owes little. What it adds is limited to "same situation options as net_salary," which is a cross-reference rather than behavioral context; it says nothing about output shape (e.g. whether the result is annualized when period=month) or the regional coverage limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the definition before the usage note; no filler, no repetition of schema content. Slightly terse given the tool's 20-parameter surface, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 20-parameter tax calculation with no output schema, the description is complete enough on inputs thanks to the fully documented schema, but thin on results: it never states that the returned figure is a gross salary in EUR, nor how period and region coverage affect the answer. An agent could call it correctly but would learn little about interpreting the output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% across 20 parameters, so the schema carries all parameter meaning including enums, defaults and units. The description adds only the pointer that the option set mirrors net_salary, which is the baseline expectation rather than added semantic value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"The gross yearly salary in Spain that leaves a given take-home pay" names the precise inverse calculation and the resource (Spanish gross salary), which an agent can distinguish from the forward net_salary tool. It stops just short of an explicit "use net_salary for the opposite direction" statement, so sibling differentiation is achieved by inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use it to set a salary ask or check an offer" gives a couple of motivating scenarios but no when-not guidance and no explicit routing rule against net_salary or employer_cost. The reader can infer the direction of the calculation, but nothing is stated about exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources