Skip to main content
Glama

Metastate · Imóveis em Portugal

Home purchase costs in Portugal / Custos de comprar casa

calcular_custos_compra
Read-only

Calculates the taxes and fees of buying a home in mainland Portugal with the official 2026 rates: IMT transfer tax (primary residence, second home, or under-35 exemption), stamp duty 0.8% and land registry (Casa Pronta). / Calcula IMT, imposto do selo e registo com as tabelas de 2026.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
preco_eurYesPurchase price in euros
finalidadeNohabitacao_propria = buyer's permanent home; secundaria = second home, investment or rental
com_creditoNotrue if financed with a mortgage (registry fee is higher)
comprador_ate_35Notrue if all buyers are 35 or younger and it is their permanent home (IMT exemption up to 330,539 €)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
fonteNo
imt_eurNo
total_eurNo
registo_eurNo
imposto_selo_eurNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this a safe, non-destructive, closed-world read, so the burden is low. The description adds real behavioral substance beyond that: which taxes are computed, the 0.8% stamp duty figure, the Casa Pronta registry fee, and the three scenario branches (primary residence, second home, under-35 exemption). It omits any caveats about estimation accuracy or output shape, but the output schema covers returns.

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?

Front-loaded and compact: the calculation, jurisdiction and rate year come first, followed by the covered instruments. The Portuguese sentence is near-verbatim duplication of the English and earns only partial credit, but the overall length remains tight and scannable.

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

Completeness4/5

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

For a moderately complex tax calculator with a full output schema, the description is sufficient: it establishes jurisdiction, year, components and eligibility branches. It stops short of noting the mainland-only limitation's consequence for island buyers or that figures are estimates, which leaves a small gap.

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%, so each of the four parameters is already documented including enum meanings and the €330,539 exemption threshold. The description's mention of 'primary residence, second home, or under-35 exemption' mirrors the finalidade and comprador_ate_35 semantics without adding new syntax or edge-case meaning, so baseline 3 is warranted.

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

Purpose5/5

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

States a specific verb (calculates) plus the exact resource (taxes and fees of buying a home), and narrows scope to mainland Portugal with 2026 official rates. It names IMT, stamp duty and land registry explicitly, so it is unmistakable against siblings like pesquisar_imoveis or ver_imovel, which do not compute costs.

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?

The 2026 mainland-Portugal scope is useful context, but there is no explicit 'use this when...' routing and no mention of alternatives or when the tool does not apply (e.g., islands, older years). Usage is only implied by the resource name and the listed transaction scenarios.

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