Buscar empresas
search_companiesSearches 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
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | 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. | |
| name | No | Company name, e.g. "Acme". | |
| cnaes | No | Brazilian CNAE codes, digits only, e.g. ["6920601"]. | |
| limit | No | Exact requested result count (<=20). Omitted, the default count. | |
| sizes | No | Headcount buckets as "min,max" ranges, e.g. ["51,200"]. | |
| state | No | Brazilian state code, e.g. "PR". | |
| radius | No | 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). | |
| hasEmail | No | Require a public registry email address. | |
| hasPhone | No | Require a public registry phone number. | |
| industry | No | Industry, e.g. "saas" or "fintech". | |
| keywords | No | Search terms, e.g. ["B2B SaaS", "BPO financeiro"]. | |
| location | No | Location, e.g. "United States". | |
| phoneType | No | Receita phone is a mobile (celular) or a landline (fixo). Only when asked. | |
| statesMin | No | Active 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. | |
| capitalMax | No | Maximum social capital in BRL. | |
| capitalMin | No | Minimum social capital in BRL. | |
| hasWebsite | No | Only companies with their own website (domain), from any source. | |
| revenueMax | No | Maximum Faturamento estimado in BRL a year, the same estimate. Applied by the registry with a state, city or CNAE. | |
| revenueMin | No | 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. | |
| branchesMin | No | At 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. | |
| fiscalSizes | No | Brazilian fiscal-size IDs: 01 unknown, 02 ME, 03 EPP, 05 demais. | |
| mesoRegions | No | IBGE mesorregião codes (4 digits), e.g. ["4110"]. Only when the person names a mesorregião. | |
| partnerName | No | Partner/shareholder name. | |
| showResults | No | Optional interactive-table presentation hint for in-product Agents. | |
| companyOrder | No | Optional provider priority. Omitted providers keep their default order. Omit the field to use the dashboard's configured default order. | |
| employeesMax | No | Maximum estimated employees of the Brazilian establishment (CNPJ), from public data. Needs state, city or CNAE. Only when asked. | |
| employeesMin | No | Minimum 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. | |
| excludeNames | No | Company names already delivered in earlier turns. Pass them with excludeDomains when fulfilling a request for more companies. | |
| microRegions | No | IBGE microrregião codes (5 digits), e.g. ["41037"] for Curitiba. Only when the person names a microrregião. | |
| schoolStages | No | Schools 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. | |
| sectorGrowth | No | Job 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. | |
| simpleOption | No | Whether the company opted into Simples Nacional. | |
| businessModel | No | Keep only companies that sell to businesses (b2b) or consumers (b2c), decided from the CNAE division. Mixed or unknown CNAEs are excluded. | |
| neighborhoods | No | Brazilian neighbourhoods (bairros), e.g. ["Batel"]. Only with city or state, only when asked. | |
| phoneScoreMin | No | Minimum 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. | |
| activityLevels | No | Activity 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. | |
| currentRegimes | No | Current tax regime to keep: mei, simples, lucro_presumido, lucro_real. A regime filter; a company whose regime is unknown is left out. | |
| emailValidated | No | Only 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. | |
| excludeDomains | No | Company domains already delivered in earlier turns. They are excluded before billing so a request for more companies returns only new candidates. | |
| openingDateMax | No | Latest opening date (YYYY-MM-DD). | |
| openingDateMin | No | Earliest opening date (YYYY-MM-DD). | |
| schoolNetworks | No | 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. | |
| exactNameLookup | No | Set 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. | |
| partnerDocument | No | Partner/shareholder CPF or CNPJ; punctuation is accepted. | |
| productKeywords | No | Words 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. | |
| excludeProviders | No | Providers to skip for this search. Use when the user explicitly asks for another data source or prior results from those providers were duplicates. | |
| immediateRegions | No | IBGE região geográfica imediata codes (6 digits), e.g. ["410001"]. Only when the person names one. | |
| legalNatureCodes | No | Brazilian legal-nature codes, e.g. ["2062"] for Sociedade Limitada. | |
| sellsToGovernment | No | true 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. | |
| establishmentTypes | No | Whether Brazilian establishments are headquarters or branches. | |
| governmentSalesMin | No | Public 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. | |
| headcountGrowthMin | No | Team 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. | |
| intermediateRegions | No | IBGE região geográfica intermediária codes (4 digits), e.g. ["4101"]. Only when the person names one. | |
| schoolEnrollmentMax | No | Schools with at most this many students. Only when asked. | |
| schoolEnrollmentMin | No | Schools with at least this many students in basic education (matrículas), e.g. 300 for "escolas com mais de 300 alunos". Only when asked. | |
| registrationStatuses | No | Brazilian Receita registration statuses. | |
| headcountGrowthMonths | No | The window of headcountGrowthMin: 6 (default) or 12 months. | |
| useBrazilianRegistryFilters | No | 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. |