br_financials

Pack: brazil-cvm-financials · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/br_financials for the schema, then POST the same URL with its arguments for the data.

Annual statements (balance sheet, income, cash flow) of a Brazilian listed company, from CVM open data.

Tool description as the model sees it

Annual financial statements (DFP) of a Brazilian listed company from CVM open data: balance sheet, income statement, cash flow and value added, as account lines with CVM account codes and Portuguese labels, in full BRL. Identify the company by cnpj (e.g. “00.000.000/0001-91” or 14 digits) or by name (e.g. “Petrobras”; an ambiguous name returns candidates instead of a guess). year is the fiscal reference year (default: latest loaded). scope is “consolidated” or “individual” (default: consolidated when the company filed one, else individual — the response says which). Only the latest filing version is kept; the response states it. statement narrows to one of BPA (assets), BPP (liabilities and equity), DRE (income), DFC_MI / DFC_MD (cash flow indirect / direct), DVA (value added). max_depth (default 2) limits account-code depth so a default call returns the headline lines; raise it for sub-accounts. Results page with limit/offset and report truncated/total_matching. A company or year not in the data returns found:false with data_as_of, never an empty success.

Parameters

NameTypeRequiredDescription
cnpjstringnoCompany CNPJ, formatted or 14 digits. Pass cnpj or name.
namestringnoCompany name, e.g. “Petrobras”, “Itau Unibanco”. Accents optional.
yearnumbernoFiscal reference year, e.g. 2024. Default: latest loaded for that company.
scopestringnoDefault consolidated if filed, else individual.
statementstringnoOne statement only. Default: all.
max_depthnumbernoAccount-code depth, 1-6 (default 2: e.g. “3.01” but not “3.01.01”).
limitnumbernoLines per page, 1-500 (default 100).
offsetnumbernoLines to skip (default 0).

Example call

Arguments

{
  "cnpj": "33.000.167/0001-01",
  "year": 2024,
  "statement": "DRE"
}

curl

curl -X POST https://gateway.pipeworx.io/brazil-cvm-financials/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"br_financials","arguments":{"cnpj":"33.000.167/0001-01","year":2024,"statement":"DRE"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('br_financials', {
  "cnpj": "33.000.167/0001-01",
  "year": 2024,
  "statement": "DRE"
});

Response shape

FieldTypeDescription
foundboolean
cnpjstring
companystring
cvm_codestring
fiscal_yearnumber
reference_datestring
scopestring
scopes_filedarray
filing_versionnumber
filing_versions_seennumber
filing_receivedstring
currencystring
filed_scalestring
unitsstring
statementsobject
max_depthnumber
total_matchingnumber
returnednumber
truncatedboolean
linesarray
sourcestring
licencestring
data_as_ofstring
latest_filing_receivedstring
fiscal_years_loadedarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "cnpj": {
      "type": "string"
    },
    "company": {
      "type": "string"
    },
    "cvm_code": {
      "type": "string"
    },
    "fiscal_year": {
      "type": "number"
    },
    "reference_date": {
      "type": "string"
    },
    "scope": {
      "type": "string"
    },
    "scopes_filed": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "filing_version": {
      "type": "number"
    },
    "filing_versions_seen": {
      "type": "number"
    },
    "filing_received": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "filed_scale": {
      "type": "string"
    },
    "units": {
      "type": "string"
    },
    "statements": {
      "type": "object",
      "properties": {
        "BPA": {
          "type": "string"
        },
        "BPP": {
          "type": "string"
        },
        "DRE": {
          "type": "string"
        },
        "DFC_MI": {
          "type": "string"
        },
        "DFC_MD": {
          "type": "string"
        },
        "DVA": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "max_depth": {
      "type": "number"
    },
    "total_matching": {
      "type": "number"
    },
    "returned": {
      "type": "number"
    },
    "truncated": {
      "type": "boolean"
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "statement": {
            "type": "string"
          },
          "account_code": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "value_brl": {
            "type": "number"
          },
          "period_start": {
            "type": "string"
          },
          "period_end": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "source": {
      "type": "string"
    },
    "licence": {
      "type": "string"
    },
    "data_as_of": {
      "type": "string"
    },
    "latest_filing_received": {
      "type": "string"
    },
    "fiscal_years_loaded": {
      "type": "array",
      "items": {
        "type": "number"
      }
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the brazil-cvm-financials pack
{
  "mcpServers": {
    "brazil-cvm-financials": {
      "url": "https://gateway.pipeworx.io/brazil-cvm-financials/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 22, 2026