Skip to main content
Glama

Verithic · official data by municipality

Is moving worth it? · ¿Me compensa mudarme?

calcular_mudanza
Read-onlyIdempotent

Balance 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

NameRequiredDescriptionDefault
m2NoSize of the current home in m² (optional). Metros de su vivienda.
modoNotransporte_publico
ahoraNoRents or owns today. Alquila o tiene casa.inquilino
desdeYesWhere the user lives now (name or slug). Dónde vive ahora.
hastaYesMunicipality being considered (not Barcelona). Municipio que se plantea.
despuesNoWants to rent or buy there. Quiere alquilar o comprar allí.alquilar
distritoNoBarcelona district slug if desde is Barcelona (e.g. gracia, eixample). Distrito de Barcelona.
languageNoResponse language: "es" (default) or "en". Idioma de la respuesta.es
itp_jovenNoMeets the 5% young-buyer ITP (35 or under, taxable base ≤ €36,000, main home).
ahorros_eurNoSavings put into the purchase (optional).
plazo_aniosNoMortgage term in years (optional; default INE average).
minutos_actualesNoMinutes today to central Barcelona (needed if desde is Barcelona).
tipo_interes_pctNoMortgage rate in % (optional; default INE average).
precio_destino_eurNoPrice of the home there (optional).
valor_vivienda_eurNoValue of the current home if owner (optional).
dias_semana_al_centroNoDays a week commuting to central Barcelona (default 5; 0 = none).
alquiler_actual_eur_mesNoCurrent rent a month (optional).
alquiler_destino_eur_mesNoRent there a month (optional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description still adds substantial behavior: every output line is tagged with its type (data, rule, sum or user figure), source and read date, and official averages can be overridden with the user's own figures. It also discloses the refusal path for the Costa Blanca zone and the deliberate abstention from a recommendation, which annotations could never convey.

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

Conciseness3/5

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

The core purpose is front-loaded and each clause carries content, but the entire description is duplicated verbatim in Spanish, roughly doubling length without adding information for an agent (the language parameter already governs response language). The long enumerations of computed outputs are useful but dense; the bilingual repetition is the main waste.

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

Completeness5/5

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

With 18 parameters and no output schema, the description must carry the return-value burden and it does: it lists the computed figures, states that each line carries type, source and read date, and clarifies that user figures can replace official averages. Edge behavior (unavailable zone, no recommendation) is also covered, so an agent can call it and interpret results without further documentation.

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 94% and each of the 18 parameters is already documented, including defaults such as 'default INE average'. The description adds the general principle that official averages are replaceable by user figures, and its mention of the Catalan ITP scale and the 5% young-buyer rate contextualizes itp_joven, but it does not explain individual parameters beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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?

It names a precise operation (a cost/benefit balance of moving between two Barcelona-area municipalities) and enumerates what the balance contains: rent or mortgage plus IBI, ITP, notary and registry fees, m² purchased, capital left over, payback months, commute time. That is far more specific than a title restatement, and the 'never concludes whether to move' boundary separates it from a recommendation tool. It never names a sibling such as comparar_municipios, so the 5-level differentiation is only implied.

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?

Usage is implied by the framing (you are weighing a move between a current home and a target municipality) rather than stated as a when-to-use rule against alternatives. The description does give explicit negative scope — it is not available for the Costa Blanca zone and answers 'not available for this zone' — plus a hard boundary that it will not advise for or against moving. No positive routing to siblings is present.

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