Skip to main content
Glama

Ver grupo econômico

company_group
Read-onlyIdempotent

The economic group of a Brazilian company by its CNPJ: the companies that control it (its partners that are companies, up to two levels) and the companies its group's head controls (subsidiaries and acquired companies that keep their own CNPJ), each with its CNPJ, legal name, main activity (CNAE) and status at the Receita (inactive ones flagged), plus the group's active factories. Free: registry lookups only. Also: how many active branches (filiais) the company has and in which states, and the companies that share partners with it (sócios em comum; linked, not necessarily controlled; the partner is never named). Answers questions about the head office CNPJ, a group's companies ("as filhas", "as compradas"), the branches, or whether a company is still active. Requires the CNPJ. The registry shows what the Receita has: foreign controllers and shareholders of an S.A. are not listed.

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

Input Schema

NameRequiredDescriptionDefault
cnpjYesThe company's CNPJ, with or without punctuation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, closed-world), the description discloses meaningful behavioral traits: cost ('Free: registry lookups only'), a depth limit ('up to two levels'), flagging of inactive companies, that common partners are 'linked, not necessarily controlled' and never named, and a data-coverage caveat that foreign controllers and S.A. shareholders are not listed. These are exactly the constraints an agent needs to interpret results and avoid over-claiming.

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 most important content (what is returned) is front-loaded, and every clause carries information — depth limit, cost, caveats. It is, however, a long comma-chained construction that reads as one sprawling sentence, which slightly hurts scanability even though little could be cut without losing substance.

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

Completeness5/5

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

For a one-parameter, read-only, closed-world lookup with no output schema, the description covers return contents, depth limits, cost, and data gaps. There is no output schema to explain, so the description carries the full burden and does so adequately; nothing an agent needs before calling it is missing.

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?

With a single parameter at 100% schema description coverage, the schema already carries the semantics ('with or without punctuation'). The description adds only the restatement that the CNPJ is required, which is already in the required array. Baseline 3 applies since the schema does the work.

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?

The description names a specific resource and enumerates exactly what is returned: controlling companies up to two levels, subsidiaries and acquired companies that keep their own CNPJ, each with CNPJ, legal name, CNAE and Receita status, plus active branches and common-partner companies. It also states the scoping rule ('Free: registry lookups only') and the keyed input (CNPJ). An agent can distinguish this registry-group lookup from unrelated siblings without opening the schema.

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?

It gives concrete triggering questions ('head office CNPJ', 'as filhas', 'as compradas', 'the branches', 'whether a company is still active') and the prerequisite 'Requires the CNPJ'. What is missing is an explicit pointer to an alternative tool for the cases this one cannot serve (e.g. foreign controllers of an S.A.), so the when-not side is only implied by the limitations paragraph.

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.