Skip to main content
Glama

cnpj_intelligence

Look up a Brazilian company by CNPJ and run automated targeted web searches to consolidate registry data with legal, news, and partner findings for due diligence and background checks.

Instructions

Intelligent automatic search about a Brazilian company using CNPJ.

This tool combines CNPJ lookup with automatic web search using intelligent dorks. It automatically:

  1. Looks up company data (razão social, sócios, etc.)

  2. Generates smart search queries (Google Dorks)

  3. Searches multiple categories: government, legal, news, documents, social, partners

  4. Returns consolidated results with company data + web findings

Perfect for: Due diligence, company research, background checks, investigations.

Provider options:

  • tavily (requires TAVILY_API_KEY env var)

  • perplexity (requires PERPLEXITY_API_KEY env var)

Note: Set TAVILY_API_KEY or PERPLEXITY_API_KEY on the server to enable web search queries.

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": {
      "cnpj": "<cnpj>"
    },
    "name": "cnpj_intelligence"
  }
}

Input Schema

NameRequiredDescriptionDefault
cnpjYesBrazilian CNPJ number (with or without formatting)
providerNoSearch provider to use (server-configured API key required)tavily
categoriesNoSearch categories to include (default: all)
max_queriesNoMaximum number of search queries to execute (default: 10)
max_results_per_queryNoMaximum results per search query (default: 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description does real work: it discloses the internal pipeline (lookup → dork generation → multi-category search → consolidation), the categories searched, and the external dependency and env vars required for web search. It stops short of saying what happens when no API key is configured (silent degradation vs. hard failure) or whether queries cost money or take long.

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?

Front-loaded with purpose, then a numbered pipeline, then use cases and provider notes — easy to scan. The API-key requirement is stated twice (per-provider line and closing 'Note'), which is mild redundancy but not harmful.

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 read operation with no output schema, the description covers inputs, pipeline, return composition ('company data + web findings'), and the external credential prerequisite. Only the failure/degradation behavior when no provider key exists is left unstated.

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 every parameter already carries its own description, and the description adds little beyond repeating that a provider key must be server-configured. It never explains the category enum values or how max_queries/max_results_per_query affect cost or latency, so baseline 3 applies.

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 ('Intelligent automatic search about a Brazilian company using CNPJ') and then enumerates the four-step pipeline, so the agent knows this is a multi-source enrichment tool rather than a bare lookup. It does not explicitly name or contrast with the obvious siblings (cnpj_lookup, cnpj_search, company_deep_profile), which keeps it 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 Guidelines4/5

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

The 'Perfect for: Due diligence, company research, background checks, investigations' line gives concrete use contexts. There is no explicit when-not guidance or named alternative for a simple, cheap CNPJ lookup, so the agent must infer that this heavier tool is not the right first call.

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