Skip to main content
Glama

Get company connections

get_company_connections
Read-onlyIdempotent

Summary of headquarters, branches, corporate partners and holdings. The summary is free. Complete lists are included in this CNPJ's dossier purchased today: use the same purchase identity. Without a purchase, comprado:false; buy through POST /api/dossie/:cnpj and retry. Links use the exact CNPJ or root, never a name or masked CPF. Source: the monthly Federal Revenue database, without inferring corporate control.

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

Input Schema

NameRequiredDescriptionDefault
cnpjYesValid CNPJ without punctuation.
tipoNoresumo (default), estabelecimentos, socios_empresas or participacoes.
depoisNoThe proximo cursor returned by the previous page.
creditoNoExisting global credit token. Required only to read a dossier purchased by that wallet.
pageSizeNoThe same page sizes as search.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / cnpj / description
      Previous value: -"CNPJ válido, sem pontuação."New value: +"Valid CNPJ without punctuation."
    • changedInput schema / properties / depois / description
      Previous value: -"Cursor proximo devolvido pela página anterior."New value: +"The proximo cursor returned by the previous page."
    • changedInput schema / properties / pageSize / description
      Previous value: -"Mesmos tamanhos de página da busca."New value: +"The same page sizes as search."
    • changedInput schema / properties / tipo / description
      Previous value: -"resumo (padrão), estabelecimentos, socios_empresas ou participacoes."New value: +"resumo (default), estabelecimentos, socios_empresas or participacoes."
  2. Added

TDQS

A3.9/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, non-destructive, closed-world), and the description adds substantial context beyond them: the free-vs-paid tiering, the purchase-identity requirement, the comprado:false signal and retry path, and the source database with a stated no-inference limit on corporate control. This is genuinely useful operational information that no annotation conveys.

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 description is front-loaded with the deliverable, then the cost/purchase policy, then input constraints and provenance, so an agent can stop reading early. It is dense and slightly telegraphic (the 'comprado:false' fragment and the embedded POST path) but no sentence is filler.

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 read-only, five-parameter lookup with no output schema, the description supplies the things that matter: the free/paid boundary, the gating field name in the response, how to unblock it, and data provenance. It does not describe the shape or volume of the returned summary, which is the main remaining gap.

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 the schema already explains cnpj, tipo, depois, credito and pageSize, and the baseline is 3. The description adds only incidental meaning — 'use the same purchase identity' clarifies what credito represents and 'complete lists' hints at the tipo variants — while the cursor and page-size parameters go unmentioned.

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?

The first sentence names the concrete resource set returned: headquarters, branches, corporate partners and holdings for a CNPJ. That is specific enough to separate it from a generic company lookup, but it never names or contrasts the closest siblings (dossier_cnpj, get_cnpj, consulta_cnpj), so differentiation is left to inference.

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 a real decision rule: the summary is free, complete lists require a dossier purchased today with the same purchase identity, and an unpurchased call returns comprado:false and should be retried after buying via POST /api/dossie/:cnpj. It also constrains inputs (exact CNPJ or root, never a name or masked CPF). What's missing is guidance on when to choose this over the sibling dossier/lookup tools.

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.