Skip to main content
Glama

Cnpj Lookup

cnpj_lookup
Read-onlyIdempotent

Look up a Brazilian company in the CNPJ registry (Receita Federal, Brazil's federal tax authority), the primary KYB / due-diligence check for any Brazil company. Give a 14-digit CNPJ (punctuation ok: "33.683.111/0002-80") and get legal name (razão social), trade name, registration status, opening date, legal nature, main CNAE activity, address, share capital, company size, Simples Nacional / MEI tax-regime flags, and the partner/officer list (QSA) with roles. Example: cnpj_lookup({ cnpj: "33683111000280" })

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cnpj": "33683111000280"
    },
    "name": "cnpj_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
cnpjYesThe company's CNPJ, 14 digits, with or without punctuation, e.g. "33.683.111/0002-80" or "33683111000280"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / cnpj / description
      Previous value: -"The company's CNPJ — 14 digits, with or without punctuation, e.g. \"33.683.111/0002-80\" or \"33683111000280\""New value: +"The company's CNPJ, 14 digits, with or without punctuation, e.g. \"33.683.111/0002-80\" or \"33683111000280\""
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "cnpj": "33683111000280"
      +  },
      +  {
      +    "cnpj": "33.683.111/0002-80"
      +  }
      +]
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), yet the description adds real context: the data source is the federal tax registry and the response includes status, tax-regime flags, and the partner/officer list. No auth or rate-limit caveats or not-found behavior are mentioned, which keeps it short of a 5.

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-loads the purpose and source, then the input contract, then the return payload, ending with a concrete call example. The long enumeration of returned fields is justified because no output schema exists, though the sentence is dense and could be broken up.

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?

With one parameter, no output schema, and full schema coverage, the description covers everything an agent needs to call it and interpret results. It omits failure modes such as invalid CNPJ or not-found responses, which matters for a lookup tool.

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% and the schema already documents the 14-digit format, punctuation tolerance, and both example forms. The description restates the same facts ("14-digit CNPJ (punctuation ok)") without adding new meaning, so it sits at the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Look up a Brazilian company in the CNPJ registry"), names the authoritative source (Receita Federal) and its role as the primary KYB/due-diligence check, then enumerates the returned fields. An agent immediately knows what this does and what it yields.

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?

Gives clear context for when to reach for it: it is the primary KYB / due-diligence check for any Brazil company. There are no explicit exclusions or named alternatives to compare against, but the use case is unambiguous.

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.