Is moving worth it? · ¿Me compensa mudarme?
calcular_mudanzaBalance of moving between two municipalities in the Barcelona area, with official averages that can be replaced by the user's own figures: rent or mortgage payment plus property tax a month, transfer tax (ITP) with the Catalan scale or the 5% young-buyer rate, notary and land-registry fees from the official tariffs, how many m² the current home buys there, money left after selling and buying, months to recover the cost of moving, and commute minutes and hours a year to central Barcelona. Every line carries its type (data, rule, sum or user figure), source and read date. Never concludes whether to move. Not available for the Costa Blanca (zone "costa-blanca"): it answers "not available for this zone". — Saldo de mudarse entre dos municipios de Barcelona y alrededores, con medias oficiales que el usuario puede sustituir por sus cifras: alquiler o cuota más IBI al mes, ITP con la escala catalana o el 5 % joven, notaría y registro por arancel, metros que compra tu vivienda allí, capital que queda tras vender y comprar, meses para recuperar el coste del cambio, y minutos y horas al año de trayecto al centro de Barcelona. Cada línea con su tipo (dato, norma, cálculo o cifra del usuario), fuente y fecha. Nunca concluye si conviene mudarse. No disponible para la Costa Blanca (zona "costa-blanca"): contesta «no disponible para esta zona».
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": {
"desde": "<desde>",
"hasta": "<hasta>"
},
"name": "calcular_mudanza"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| m2 | No | Size of the current home in m² (optional). Metros de su vivienda. | |
| modo | No | transporte_publico | |
| ahora | No | Rents or owns today. Alquila o tiene casa. | inquilino |
| desde | Yes | Where the user lives now (name or slug). Dónde vive ahora. | |
| hasta | Yes | Municipality being considered (not Barcelona). Municipio que se plantea. | |
| despues | No | Wants to rent or buy there. Quiere alquilar o comprar allí. | alquilar |
| distrito | No | Barcelona district slug if desde is Barcelona (e.g. gracia, eixample). Distrito de Barcelona. | |
| language | No | Response language: "es" (default) or "en". Idioma de la respuesta. | es |
| itp_joven | No | Meets the 5% young-buyer ITP (35 or under, taxable base ≤ €36,000, main home). | |
| ahorros_eur | No | Savings put into the purchase (optional). | |
| plazo_anios | No | Mortgage term in years (optional; default INE average). | |
| minutos_actuales | No | Minutes today to central Barcelona (needed if desde is Barcelona). | |
| tipo_interes_pct | No | Mortgage rate in % (optional; default INE average). | |
| precio_destino_eur | No | Price of the home there (optional). | |
| valor_vivienda_eur | No | Value of the current home if owner (optional). | |
| dias_semana_al_centro | No | Days a week commuting to central Barcelona (default 5; 0 = none). | |
| alquiler_actual_eur_mes | No | Current rent a month (optional). | |
| alquiler_destino_eur_mes | No | Rent there a month (optional). |