Skip to main content
Glama

Verithic · official data by municipality

Search by budget · Buscar por presupuesto y minutos a Barcelona

buscar_por_presupuesto
Read-onlyIdempotent

Given a purchase budget, says how many square metres of used housing it buys in each municipality with a published price (budget / average price per m²), sorted from most to least space. Each municipality carries its public transport minutes to Plaça Catalunya (door to door, leaving 7–9am on a weekday) and, as before, its driving minutes. Can be limited by maximum public transport minutes, by maximum driving minutes and by county. It is a municipal average without taxes or purchase costs, not the price of a specific flat. Not available for the Costa Blanca (zone "costa-blanca"): it answers "not available for this zone". — Con un presupuesto de compra, dice cuántos metros de vivienda usada da en cada municipio con precio publicado (presupuesto / precio medio del m²), ordenado de más a menos metros. Cada municipio trae sus minutos en transporte público a plaza Catalunya (puerta a puerta, saliendo de 7 a 9 en día laborable) y, como antes, sus minutos en coche. Se puede acotar por minutos máximos en transporte público, por minutos máximos en coche y por comarca. Es una media municipal sin impuestos ni gastos, no el precio de un piso concreto. 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": {
      "presupuesto_eur": "<presupuesto_eur>"
    },
    "name": "buscar_por_presupuesto"
  }
}

Input Schema

NameRequiredDescriptionDefault
limiteNoHow many municipalities to return (default 10). Cuántos municipios devolver.
comarcaNoFilter by county, e.g. “Maresme” or “Barcelonès” (optional). Filtrar por comarca.
languageNoResponse language: "es" (default) or "en". Idioma de la respuesta.es
presupuesto_eurYesPurchase budget in euros. Presupuesto de compra en euros.
max_minutos_coche_barcelonaNoMaximum driving minutes to Plaça Catalunya, without traffic (optional). Máximo de minutos en coche, sin tráfico.
max_minutos_transporte_publico_barcelonaNoMaximum minutes by public transport to Plaça Catalunya, door to door, leaving 7–9am on a weekday (optional). Towns with no useful service are excluded. Máximo de minutos en transporte público, puerta a puerta, saliendo de 7 a 9 en día laborable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / max_minutos_transporte_publico_barcelona
      Added value: +{
      +  "description": "Maximum minutes by public transport to Plaça Catalunya, door to door, leaving 7–9am on a weekday (optional). Towns with no useful service are excluded. Máximo de minutos en transporte público, puerta a puerta, saliendo de 7 a 9 en día laborable.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior, and the description adds substantial context beyond them: the budget divided by average price per m² calculation, the most-to-least-space ordering, door-to-door transport times leaving 7–9am on weekdays, exclusion of taxes and purchase costs, and the Costa Blanca unavailability response.

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 English text is front-loaded and each English sentence carries useful scope or assumption detail. However, the full Spanish translation duplicates the same content and roughly doubles the description length without adding information for a bilingual model, so it is thorough but not concise.

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?

Although there is no output schema, the description explains the returned values (square metres per municipality, public-transport minutes, driving minutes), the ordering, the calculation assumptions, and the unavailable-zone response. Nothing essential for invoking the tool correctly appears to be missing.

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?

All six parameters have schema descriptions, so the baseline is 3. The description adds meaningful semantics beyond the schema by stating the budget formula (presupuesto / precio medio del m²) and explaining how the max-minutes and county filters constrain the municipal results.

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?

Opens with a specific calculation: how many square metres of used housing a purchase budget buys in each municipality with a published price. The verb, resource, and budget-based framing are unambiguous, and the operation is readily distinguishable from sibling tools such as comparar_municipios or ranking_por_perfil.

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 description explains important constraints (county filter, maximum public-transport minutes, maximum driving minutes) and a clear exclusion (Costa Blanca), but never explicitly says when to choose this tool over siblings. Usage is implied by the budget-based framing rather than routed through named alternatives.

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