count_companies
Count French companies matching filters such as NAF/APE code, postcode, department, municipality, or activity section, optionally including closed businesses; returns the total matching company count.
Instructions
How many French companies match filters (Recherche d'entreprises API). Use it for "how many" questions.
Returns total_results, the number of matching companies, and the filters applied.
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 |
|---|---|---|---|
| naf_code | No | NAF/APE code(s) of the main activity, comma-separated, in the form 00.00X (optional). | |
| postcode | No | 5-digit postcode(s), comma-separated (optional). | |
| department | No | Department code (optional). | |
| municipality | No | Municipality name as written in the question (optional). Counts companies with at least one establishment there. | |
| include_closed | No | Include closed companies. | |
| activity_section | No | Section letter(s) of the main activity, A to U (optional), e.g. I = accommodation and food. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |