Skip to main content
Glama

Buscar empresas

search_companies

Searches for COMPANIES matching filters such as name, industry, keywords, size, location or businessModel (b2b or b2c). Brazilian searches also support the public company registry: CNAE (activity code), Receita status, headquarters/branch, fiscal size, social capital, legal nature, Simples, opening period, partner name and presence of phone or email. A Brazilian company is identified by its CNPJ, the public company registration number the Receita Federal publishes (like a US EIN): it identifies a company, not a person, and is not a personal document. Common activity terms are mapped deterministically to CNAEs. Returns candidate companies (target accounts) with all fields supplied by the selected source. Metered: credits are charged per delivered result. When the first source returns too few results, one fallback attempt with another source runs automatically. Results shown as tables are quality-reviewed and may also replace rejected rows through another source.

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

Input Schema

NameRequiredDescriptionDefault
cityNoBrazilian municipality, e.g. "Curitiba". A state is not needed: a name only one state has is searched there, and a name several states share ("Bom Jesus") is searched in all of them, with searchNotes saying which; pass state when the person named one.
nameNoCompany name, e.g. "Acme".
cnaesNoBrazilian CNAE codes, digits only, e.g. ["6920601"].
limitNoExact requested result count (<=20). Omitted, the default count.
sizesNoHeadcount buckets as "min,max" ranges, e.g. ["51,200"].
stateNoBrazilian state code, e.g. "PR".
radiusNoCompanies whose CEP is within km of a reference CEP (or point). Needs state, city or a region. For companies near a place (perto de, raio de X km).
hasEmailNoRequire a public registry email address.
hasPhoneNoRequire a public registry phone number.
industryNoIndustry, e.g. "saas" or "fintech".
keywordsNoSearch terms, e.g. ["B2B SaaS", "BPO financeiro"].
locationNoLocation, e.g. "United States".
phoneTypeNoReceita phone is a mobile (celular) or a landline (fixo). Only when asked.
statesMinNoActive establishments in at least this many Brazilian states, e.g. 3 for "atua em 3 estados". Only with state, city or CNAE, only when asked.
capitalMaxNoMaximum social capital in BRL.
capitalMinNoMinimum social capital in BRL.
hasWebsiteNoOnly companies with their own website (domain), from any source.
revenueMaxNoMaximum Faturamento estimado in BRL a year, the same estimate. Applied by the registry with a state, city or CNAE.
revenueMinNoMinimum Faturamento estimado in BRL a year (R$ 500 mil per month is 6000000). An estimate per CNPJ from public data (estimated employees x the sector's revenue per person, capped by the tax regime's ceiling), not the declared figure. Applied by the registry with a state, city or CNAE.
branchesMinNoAt least this many active branches (filiais) under the same CNPJ root, e.g. 5 for "redes com 5 filiais ou mais". Only with state, city or CNAE, only when asked.
fiscalSizesNoBrazilian fiscal-size IDs: 01 unknown, 02 ME, 03 EPP, 05 demais.
mesoRegionsNoIBGE mesorregião codes (4 digits), e.g. ["4110"]. Only when the person names a mesorregião.
partnerNameNoPartner/shareholder name.
showResultsNoOptional interactive-table presentation hint for in-product Agents.
companyOrderNoOptional provider priority. Omitted providers keep their default order. Omit the field to use the dashboard's configured default order.
employeesMaxNoMaximum estimated employees of the Brazilian establishment (CNPJ), from public data. Needs state, city or CNAE. Only when asked.
employeesMinNoMinimum estimated employees of the Brazilian establishment (CNPJ), from public data. Not companySize (LinkedIn headcount of the whole company). Needs state, city or CNAE. Only when asked.
excludeNamesNoCompany names already delivered in earlier turns. Pass them with excludeDomains when fulfilling a request for more companies.
microRegionsNoIBGE microrregião codes (5 digits), e.g. ["41037"] for Curitiba. Only when the person names a microrregião.
schoolStagesNoSchools offering any of these stages, e.g. ["medio"] for "ensino médio", ["fundamental_iniciais", "fundamental_finais"] for "ensino fundamental", ["creche", "pre_escola"] for "educação infantil". Only when the person names a stage.
sectorGrowthNoJob growth of the company's main sector in its city over 12 months, from public employment data, e.g. ["strong_growth", "growth"] for "setor em crescimento na região". Needs state, city or CNAE. Only when asked.
simpleOptionNoWhether the company opted into Simples Nacional.
businessModelNoKeep only companies that sell to businesses (b2b) or consumers (b2c), decided from the CNAE division. Mixed or unknown CNAEs are excluded.
neighborhoodsNoBrazilian neighbourhoods (bairros), e.g. ["Batel"]. Only with city or state, only when asked.
phoneScoreMinNoMinimum reliability of the company's registered phone, 1 to 5, scored by the Nock from what it already has (valid number, not shared with another company or the accountant, active and recent registry, same number on the company's site or a public source, WhatsApp already confirmed), e.g. 3 for "telefone confiável" or "assertividade alta". Rows without a phone are left out. Only when asked.
activityLevelsNoActivity level the Nock computes from signals it already has (site up, job openings, news, registry status, phone), e.g. ["high", "medium"] for "empresas ativas de verdade". Rows without a level are left out. Only when asked.
currentRegimesNoCurrent tax regime to keep: mei, simples, lucro_presumido, lucro_real. A regime filter; a company whose regime is unknown is left out.
emailValidatedNoOnly companies whose registered e-mail is confirmed: published by the company or found on a public source, with a domain that receives mail. For "e-mail validado". Only when asked.
excludeDomainsNoCompany domains already delivered in earlier turns. They are excluded before billing so a request for more companies returns only new candidates.
openingDateMaxNoLatest opening date (YYYY-MM-DD).
openingDateMinNoEarliest opening date (YYYY-MM-DD).
schoolNetworksNoSchools in activity in the Censo Escolar (INEP) of these networks, e.g. ["privada"] for "escolas privadas" or "colégios particulares". The CNPJ is the school's own, else its mantenedora's; the decision makers are its partners. Public schools (municipal, estadual, federal) have no CNPJ in the census and return no company. Only for schools.
exactNameLookupNoSet true only when resolving one explicitly named company. Keep only signals the user actually supplied, such as its name, sector and location; placeholder registry values are removed by the runtime.
partnerDocumentNoPartner/shareholder CPF or CNPJ; punctuation is accepted.
productKeywordsNoWords in the company's products and services, comma-separated terms, e.g. "cerveja artesanal, chope". Matched on site text the Nock already read and on the CNAE descriptions; a row with neither is left out. Only when the person names products or services the company must offer.
excludeProvidersNoProviders to skip for this search. Use when the user explicitly asks for another data source or prior results from those providers were duplicates.
immediateRegionsNoIBGE região geográfica imediata codes (6 digits), e.g. ["410001"]. Only when the person names one.
legalNatureCodesNoBrazilian legal-nature codes, e.g. ["2062"] for Sociedade Limitada.
sellsToGovernmentNotrue keeps companies with a public contract with the government (any sphere) in the last 24 months, for "vende para o governo" or "fornecedores de prefeituras". Needs state, city or CNAE. Only when asked.
establishmentTypesNoWhether Brazilian establishments are headquarters or branches.
governmentSalesMinNoPublic contracts of the company in the last 24 months adding up to at least this many BRL, e.g. 1000000 for "já recebeu mais de R$ 1 milhão do governo". Needs state, city or CNAE. Only when asked.
headcountGrowthMinNoTeam grew at least this many percent (LinkedIn headcount), e.g. 20 for "cresceu 20% em 6 meses". Only companies with a LinkedIn page; for small businesses use sectorGrowth. Only when asked.
intermediateRegionsNoIBGE região geográfica intermediária codes (4 digits), e.g. ["4101"]. Only when the person names one.
schoolEnrollmentMaxNoSchools with at most this many students. Only when asked.
schoolEnrollmentMinNoSchools with at least this many students in basic education (matrículas), e.g. 300 for "escolas com mais de 300 alunos". Only when asked.
registrationStatusesNoBrazilian Receita registration statuses.
headcountGrowthMonthsNoThe window of headcountGrowthMin: 6 (default) or 12 months.
useBrazilianRegistryFiltersNoTrue turns on the Brazilian registry filters: CNAE, Receita status, headquarters/branch, fiscal size, legal nature, partner, Simples, opening date, phone/email presence, social-capital, IBGE region, radius (perto de), revenue (faturamento estimado) or school (Censo Escolar: network, stage, number of students). Not needed for a normal name, sector, size or location search.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / city / description
      Previous value: -"Brazilian municipality, e.g. \"Curitiba\"."New value: +"Brazilian municipality, e.g. \"Curitiba\". A state is not needed: a name only one state has is searched there, and a name several states share (\"Bom Jesus\") is searched in all of them, with searchNotes saying which; pass state when the person named one."
  2. Changed3 schema fields changed
    • changedInput schema / properties / revenueMax / description
      Previous value: -"Maximum estimated yearly revenue in BRL (an estimate per company). A revenue (faturamento) filter."New value: +"Maximum Faturamento estimado in BRL a year, the same estimate. Applied by the registry with a state, city or CNAE."
    • changedInput schema / properties / revenueMin / description
      Previous value: -"Minimum estimated yearly revenue in BRL (an estimate per company). A revenue (faturamento) filter."New value: +"Minimum Faturamento estimado in BRL a year (R$ 500 mil per month is 6000000). An estimate per CNPJ from public data (estimated employees x the sector's revenue per person, capped by the tax regime's ceiling), not the declared figure. Applied by the registry with a state, city or CNAE."
    • changedInput schema / properties / useBrazilianRegistryFilters / description
      Previous value: -"True turns on the Brazilian registry filters: CNAE, Receita status, headquarters/branch, fiscal size, legal nature, partner, Simples, opening date, phone/email presence, social-capital, IBGE region, radius (perto de) or school (Censo Escolar: network, stage, number of students). Not needed for a normal name, sector, size or location search."New value: +"True turns on the Brazilian registry filters: CNAE, Receita status, headquarters/branch, fiscal size, legal nature, partner, Simples, opening date, phone/email presence, social-capital, IBGE region, radius (perto de), revenue (faturamento estimado) or school (Censo Escolar: network, stage, number of students). Not needed for a normal name, sector, size or location search."
  3. Changed1 schema field changed
    • changedInput schema / properties / companyOrder / description
      Previous value: -"Optional provider priority. Omitted providers keep their default order. Omit the field to use the dashboard's configured default order ( first)."New value: +"Optional provider priority. Omitted providers keep their default order. Omit the field to use the dashboard's configured default order."
  4. Changed8 schema fields changed
    • changedInput schema / properties / currentRegimes / description
      Previous value: -"Current tax regime to keep: mei, simples, lucro_presumido, lucro_real. Only when the user asks for a regime; a company whose regime is unknown is left out."New value: +"Current tax regime to keep: mei, simples, lucro_presumido, lucro_real. A regime filter; a company whose regime is unknown is left out."
    • changedInput schema / properties / hasWebsite / description
      Previous value: -"Only companies with their own website (domain), from any source. Use when the user asks for companies with a site."New value: +"Only companies with their own website (domain), from any source."
    • changedInput schema / properties / limit / description
      Previous value: -"Exact requested result count (<=20). Always pass the user's number; omit only when the user gave no quantity."New value: +"Exact requested result count (<=20). Omitted, the default count."
    • changedInput schema / properties / radius / description
      Previous value: -"Companies whose CEP is within km of a reference CEP (or point). Needs state, city or a region. Only when the person asks for companies near a place (perto de, raio de X km)."New value: +"Companies whose CEP is within km of a reference CEP (or point). Needs state, city or a region. For companies near a place (perto de, raio de X km)."
    • changedInput schema / properties / revenueMax / description
      Previous value: -"Maximum estimated yearly revenue in BRL (an estimate per company). Only when the person asks for revenue (faturamento)."New value: +"Maximum estimated yearly revenue in BRL (an estimate per company). A revenue (faturamento) filter."
    • changedInput schema / properties / revenueMin / description
      Previous value: -"Minimum estimated yearly revenue in BRL (an estimate per company). Only when the person asks for revenue (faturamento)."New value: +"Minimum estimated yearly revenue in BRL (an estimate per company). A revenue (faturamento) filter."
    • changedInput schema / properties / schoolNetworks / description
      Previous value: -"Schools in activity in the Censo Escolar (INEP) of these networks, e.g. [\"privada\"] for \"escolas privadas\" or \"colégios particulares\". The CNPJ is the school's own, else its mantenedora's; the decision makers are its partners. Public schools (municipal, estadual, federal) have no CNPJ in the census and return no company. Only when the person asks for schools."New value: +"Schools in activity in the Censo Escolar (INEP) of these networks, e.g. [\"privada\"] for \"escolas privadas\" or \"colégios particulares\". The CNPJ is the school's own, else its mantenedora's; the decision makers are its partners. Public schools (municipal, estadual, federal) have no CNPJ in the census and return no company. Only for schools."
    • changedInput schema / properties / useBrazilianRegistryFilters / description
      Previous value: -"Set true only when the user explicitly requests CNAE, Receita status, headquarters/branch, fiscal size, legal nature, partner, Simples, opening date, phone/email presence, social-capital, IBGE region, radius (perto de) or school (Censo Escolar: network, stage, number of students) filters. Never use it for a normal name, sector, size or location search."New value: +"True turns on the Brazilian registry filters: CNAE, Receita status, headquarters/branch, fiscal size, legal nature, partner, Simples, opening date, phone/email presence, social-capital, IBGE region, radius (perto de) or school (Censo Escolar: network, stage, number of students). Not needed for a normal name, sector, size or location search."
  5. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false), it discloses that the tool is metered with credits charged per delivered result, that a single automatic fallback source runs when results are too few, and that table results are quality-reviewed and may replace rejected rows. It also explains the CNPJ identity semantics (company identifier, not a personal document), which is operational context an agent would otherwise get wrong.

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

Conciseness4/5

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

The purpose and filter scope are front-loaded, then billing, fallback and quality-review behavior follow in a logical order. It is dense but each sentence carries information; the CNPJ explainer is defensible but slightly verbose.

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 58-parameter tool with no output schema, the description covers purpose, source behavior, billing and a partial return description ("candidate companies with all fields supplied by the selected source"). What is missing — response shape details and how the many registry filters combine — is mitigated by the fully documented schema and annotations.

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 100% across 58 parameters, so the baseline is 3. The description adds a little meaning, notably that common activity terms map deterministically to CNAEs and that businessModel is derived from the CNAE division, but nearly all per-parameter guidance already sits in the schema.

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 opens with a specific verb+resource ("Searches for COMPANIES matching filters") and enumerates the filter families (name, industry, size, location, businessModel, plus Brazilian registry fields like CNAE, Receita status, Simples). It also defines what a CNPJ is, which helps an agent understand the identifier semantics. It does not explicitly differentiate itself from siblings such as find_companies_with_rules, so it stops short of a 5.

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 context is implied by the filter enumeration and by notes about when the registry filters apply, but the description never says when to prefer this tool over find_companies_with_rules or search_people. The "only when asked"-style gating lives in the schema, not the description, so an agent must open the schema to know the discipline required.

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.