Skip to main content
Glama

calculate es home purchase tax

calculate_es_home_purchase_tax
Read-onlyIdempotent

Taxes when you buy a home: Spain ITP for used homes or IVA + AJD for new homes by comunidad. Agent, notary and lawyer fees are not included. General information only: not tax or legal advice, as of 2026-11-22.

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": {
      "price": "<price>"
    },
    "name": "calculate_es_home_purchase_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoCN: floor area m²
kindNoJP: new or used house
orderNoCN: home order
priceYesPurchase price
esKindNoES: used or new
frKindNoFR: ancien or neuf
regionNoES: comunidad
landAreaNoJP: land area m²
firstTimeNoUK: first-time buyer
floorAreaNoJP: floor area m²
landValueNoJP: land 固定資産税評価額
localRateNoCN: local 契税 rate as a fraction
qualifiesNoJP: meets the 住宅用 reduction conditions
additionalNoUK: will own another residential property
nonResidentNoUK: non-UK resident
buildingValueNoJP: building 固定資産税評価額
primoAccedantNoFR: first purchase of a main home
departmentRateNoFR: departmental rate as a fraction, e.g. 0.045
houseDeductionNoJP: 住宅控除額 for 不動産取得税

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: which costs are excluded (agent, notary, lawyer fees), a non-advice disclaimer, and a freshness date. It stops short of describing the result shape or rate sources, which would matter for a tax estimate.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the tax composition, then exclusions, then the disclaimer and freshness stamp. Every sentence carries distinct information with no repetition of the name or title.

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 calculator with 19 parameters and no output schema, the description never indicates what comes back (total tax, per-tax breakdown, effective rate) or that only price/esKind/region matter for the ES path, leaving the agent to guess which of the cross-country fields are relevant. The read-only nature and fee exclusions are well covered, so it is adequate but incomplete.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description earns an upgrade by explaining the logic that drives two key inputs: used vs new homes determines ITP versus IVA + AJD (mapping to esKind), and rates vary by comunidad (mapping to region). It still says nothing about the many non-ES parameters that appear in the schema.

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 description names the concrete resource (taxes on buying a home in Spain) and the exact tax mechanics (ITP for used, IVA + AJD for new, varying by comunidad), which cleanly separates it from the CN/FR/JP/UK home-purchase siblings and from calculate_es_take_home. The verb is implied rather than stated, but the scope is unmistakable.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus alternatives, nor any prerequisites. The only conditional statement is a disclaimer ('General information only: not tax or legal advice'), which tells the agent the output is not authoritative but does not route it between tools or state exclusions of scope beyond the fee note.

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.