Count companies
count_companiesHow many companies the register copy holds for an activity code (CAE Rev.4, 2 to 5 digits: a shorter code counts everything below it), a concelho and/or a founding year or month. Returns counts by status with the date of the copy and the definitions used. Use this, not list_companies, to size a sector or compare places.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "count_companies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cae | No | CAE Rev.4 code or the start of one, e.g. "56" or "56111" (main activity only) | |
| founded | No | Founding year YYYY or month YYYY-MM | |
| municipality | No | Concelho name, e.g. "Braga" |