Skip to main content
Glama

Companies in a neighborhood

vizinhanca
Read-onlyIdempotent

The active, opened and closed companies within a radius in meters, by CNAE (activity code), with the recent openings and the distance. We import the address and company data and join them geographically. Query the neighborhood without downloading and indexing both datasets. CNEFE reflects 2022, and company positions and distances are based on postal codes. Always check base, truncado and lenta: missing counts are unknown (not zero), and a response with lenta:true or missing counts never consumes allowance or charges credit/x402. Results do not measure foot traffic, demand or exact storefront locations.

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": "vizinhanca"
  }
}

Input Schema

NameRequiredDescriptionDefault
cepNoCenter by CEP (8 digits).
latNoLatitude of the center, when there is no `cep`.
lonNoLongitude of the center, when there is no `cep`.
cnaeNoCNAE prefix: 2, 5 or 7 digits.
raioNoMeters, 1 to 2000 (default 500).
desdeNoISO date. The default is 90 days before the date of the data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / cep / description
      Previous value: -"Centro pelo CEP (8 dígitos)"New value: +"Center by CEP (8 digits)."
    • changedInput schema / properties / cnae / description
      Previous value: -"Prefixo de CNAE: 2, 5 ou 7 dígitos"New value: +"CNAE prefix: 2, 5 or 7 digits."
    • changedInput schema / properties / desde / description
      Previous value: -"ISO; padrão 90 dias antes da data da base"New value: +"ISO date. The default is 90 days before the date of the data."
    • changedInput schema / properties / lat / description
      Previous value: -"Latitude do centro, se não vier `cep`."New value: +"Latitude of the center, when there is no `cep`."
    • changedInput schema / properties / lon / description
      Previous value: -"Longitude do centro, se não vier `cep`."New value: +"Longitude of the center, when there is no `cep`."
    • changedInput schema / properties / raio / description
      Previous value: -"Metros, 1 a 2000 (padrão 500)"New value: +"Meters, 1 to 2000 (default 500)."
  2. Changed3 schema fields changed
    • addedInput schema / properties / lat / description
      Added value: +"Latitude do centro, se não vier `cep`."
    • addedInput schema / properties / lon / description
      Added value: +"Longitude do centro, se não vier `cep`."
    • addedInput schema / properties / raio / default
      Added value: +500
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent and non-destructive, but the description adds genuinely new behavioral context: CNEFE reflects 2022, positions and distances derive from postal codes, and a response with lenta:true or missing counts never consumes allowance or charges credit/x402. That billing/quota behavior is exactly the kind of thing annotations cannot convey. It stops short of explaining the meaning of the base and truncado fields it instructs the agent to check.

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 purpose is front-loaded, but the definition mixes a stated capability with implementation narration ("We import the address and company data and join them geographically") that does not help the agent call it. The middle section is dense and dense-to-parse, and the language switches between Portuguese field names and English prose without a clear structural separation between purpose, caveats and billing rules.

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 tool with no output schema, the definition does a lot: it names the response-level fields to inspect, warns about missing counts being unknown rather than zero, and states the data vintage. It is still incomplete on the return shape (counts vs. listings), on the truncation semantics, and on center selection given that no parameter is required.

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 coverage is 100%, so the schema already documents cep, lat/lon, cnae, raio and desde, and the baseline of 3 applies. The description adds only marginal semantic value (CNAE glossed as "activity code", radius in meters, "recent openings" mapping loosely to desde) and does not explain how to choose a center when both cep and lat/lon are optional.

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 concrete resource (active, opened and closed companies within a radius) and the filtering dimension (CNAE), plus what is returned (recent openings, distance). It is clearly distinct from a generic company lookup, though it never names the sibling it complements or replaces (e.g. raio, proximo, empresas).

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?

It implies usage ("Query the neighborhood without downloading and indexing both datasets") and includes strong negative guidance ("Results do not measure foot traffic, demand or exact storefront locations"), which tells the agent when the output is inappropriate. However, it gives no explicit routing rule for choosing between this tool and alternatives such as raio or proximo, so selection is left to inference.

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.