Skip to main content
Glama

ITBI SP · São Paulo real estate prices

Bairros mais caros e mais baratos (vendas reais do ITBI)

ranking_bairros
Read-onlyIdempotent

Ranking dos bairros pelo m² pago em 12 meses (ITBI): mais caros, mais baratos, maior alta ou queda. São Paulo por padrão (96 distritos, por zona e tipo); com cidade, os bairros de Rio de Janeiro, Belo Horizonte, Porto Alegre, Recife ou Fortaleza (só apartamentos, sem zona). Use para 'bairros mais caros', 'mais barato da zona leste'. Neighborhood ranking, São Paulo plus 5 other Brazilian capitals via cidade.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ranking_bairros"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipoNoOpcional: só apartamentos ou só casas.
zonaNoOpcional: zona de São Paulo. Optional zone (São Paulo only).
ordemNoOrdem.mais_caros
cidadeNoOpcional: cidade. Sem cidade é São Paulo. Outras capitais com vendas do ITBI: rio-de-janeiro, belo-horizonte, porto-alegre, fortaleza, recife (a tool cobertura diz o período e a base do valor de cada uma). Optional city; default São Paulo.sao-paulo
limiteNoQuantos bairros (1–96 em São Paulo; até o total da cidade nas outras). How many.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / cidade
      Added value: +{
      +  "default": "sao-paulo",
      +  "description": "Opcional: cidade. Sem cidade é São Paulo. Outras capitais com vendas do ITBI: rio-de-janeiro, belo-horizonte, porto-alegre, fortaleza, recife (a tool cobertura diz o período e a base do valor de cada uma). Optional city; default São Paulo.",
      +  "enum": [
      +    "sao-paulo",
      +    "rio-de-janeiro",
      +    "belo-horizonte",
      +    "porto-alegre",
      +    "fortaleza",
      +    "recife"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / limite / description
      Previous value: -"Quantos bairros (1–96). How many."New value: +"Quantos bairros (1–96 em São Paulo; até o total da cidade nas outras). How many."
    • changedInput schema / properties / limite / maximum
      Previous value: -96New value: +130
    • changedInput schema / properties / zona / description
      Previous value: -"Opcional: zona da cidade. Optional zone."New value: +"Opcional: zona de São Paulo. Optional zone (São Paulo only)."
  2. Changed2 schema fields changed
    • changedInput schema / properties / ordem / description
      Previous value: -"Ordem. Sort order."New value: +"Ordem."
    • changedInput schema / properties / tipo / description
      Previous value: -"Opcional: só apartamentos ou só casas. Optional property type."New value: +"Opcional: só apartamentos ou só casas."
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the description is free to add domain context, which it does: the ITBI data source, the 12-month window, the 96-district São Paulo base, and the constraint that other capitals cover apartments only and ignore zona. It does not discuss recency/lag or output format, but the annotations carry the safety profile.

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 is front-loaded and the parentheticals carry real constraints, but the closing sentence ('Neighborhood ranking, São Paulo plus 5 other Brazilian capitals via cidade') largely restates the preceding sentence and reads as bilingual keyword padding. Parenthesis density also makes it slower to parse than necessary.

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 five-parameter, all-optional read tool with full schema coverage and no output schema, the description covers the important unknowns: data source, time window, geographic coverage, and the zona/apartment restriction outside São Paulo. It leaves the ranking payload's fields implicit, but that is a minor gap given the annotations and schema.

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 coverage is 100%, so the baseline is 3; the description earns above that by documenting a cross-parameter constraint the schema does not encode: when cidade is set, only apartments are available and zona does not apply. It also ties the 96-district ceiling to São Paulo versus the per-city total elsewhere, which clarifies the limite bound.

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 a specific verb and resource: ranking of bairros by price per m² over 12 months from ITBI data, with four ranking modes. It clearly scopes coverage (São Paulo's 96 districts by zona and tipo, plus five other capitals). It does not explicitly contrast itself with siblings such as vendas_bairro or resumo_bairro, so the differentiation is implied rather than stated.

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

Usage Guidelines4/5

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

Trigger phrases are given directly ('bairros mais caros', 'mais barato da zona leste'), along with the condition that selects the multi-city mode (passing cidade) and its restriction to apartments without zona. There is no explicit when-not-to-use guidance or named alternative for raw per-neighborhood sales, leaving the agent to infer the boundary with vendas_bairro.

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.