Skip to main content
Glama

cnpj_search

Search the web for Brazilian company, CNPJ, and people information using advanced operators to support due diligence, compliance, and customer verification.

Instructions

Search the web for information about Brazilian companies, CNPJ numbers, people, and more using Tavily or Perplexity.

This tool supports advanced search operators:

  • site:example.com - Search within a specific domain

  • intext:"exact phrase" - Find exact text in page body

  • intitle:keyword - Find keyword in page title

  • inurl:keyword - Find keyword in URL

  • filetype:pdf - Search for specific file types (pdf, xls, doc, etc.)

  • "exact phrase" - Search for exact phrase

  • keyword1 OR keyword2 - Search for either keyword

  • -exclude - Exclude a term from results

Common use cases:

  • Find company information: "CNPJ site:gov.br"

  • Search legal cases: "razao social site:jusbrasil.com.br"

  • Find documents: "CNPJ filetype:pdf"

  • Search social media: "company name site:linkedin.com"

  • Government records: "CNPJ site:transparencia.gov.br"

Examples:

  • cnpj_search({ query: "28526270000150 site:gov.br", max_results: 10 })

  • cnpj_search({ query: ""CRISTIANO AREDES" intext:CNPJ" })

  • cnpj_search({ query: "site:jusbrasil.com.br "AC SOLUCOES"" })

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": {
      "query": "<query>"
    },
    "name": "cnpj_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch query (can include operators like site:, intext:, filetype:, etc.)
max_resultsNoMaximum number of results to return (default: 5, max: 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It names two possible backends ('Tavily or Perplexity') without saying which is used, whether it is selectable, or whether it falls back between them, and it says nothing about read-only behavior, freshness, rate limits, or what the results look like.

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?

Operator list is front-loaded and earns its space, but the 'Common use cases' and 'Examples' sections overlap heavily (e.g. 'CNPJ site:gov.br' appears in both), producing redundancy in an already long description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no annotations and no output schema, the description should at least characterize the return shape (web result links/snippets rather than structured CNPJ records) so the agent does not mistake it for a data lookup. That gap plus the unresolved provider ambiguity leaves it only adequate.

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 baseline 3 applies, but the description goes further by enumerating the supported search operators (site:, intext:, intitle:, inurl:, filetype:, OR, negation, exact phrase), which is meaningfully more than the schema's 'can include operators like site:, intext:, filetype:, etc.' Only max_results gets no semantic elaboration.

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?

States a specific verb and resource: web search over Brazilian company/CNPJ/person information via Tavily or Perplexity. However, with siblings like cnpj_lookup and cnpj_intelligence present, the definition never says how this open web search differs from those structured lookups, leaving the agent to guess.

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 'Common use cases' block implies when the tool is useful (company info, legal cases, documents, social media, government records) and the examples show realistic invocations. There is no explicit exclusion or routing advice (e.g. 'use cnpj_lookup for registry data, this tool for open-web evidence'), so usage is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.