french-open-data
# french-open-data-mcp
MCP server for French public data (companies, property prices, Légifrance) and an
orchestrator for a local LLM, such as Olala on a Mac.
Everything runs on your machine: the model, the orchestrator and the MCP server. The model
does not answer from memory. It calls tools, and each tool result carries a `source` field
that the answer cites.
## Architecture
```
question ──▶ orchestrator (this repo) ──────▶ local LLM, OpenAI-compatible API with tool calling
│ Olala via mlx-engine (http://127.0.0.1:8000/v1)
│ or Ollama (http://localhost:11434/v1)
│
└──▶ MCP server "french-open-data" (this repo, subprocess over stdio)
├─ Recherche d'entreprises API (companies: Sirene + RNE)
├─ geo.api.gouv.fr (municipality codes)
├─ data.gouv.fr Tabular API (DVF property sales)
└─ Légifrance via PISTE (optional, needs credentials)
```
Three separate parts, all on the same machine:
1. **The model** is served locally by an OpenAI-compatible `/chat/completions` endpoint
that supports `tools`.
2. **The MCP server** holds the code that calls the public APIs. The orchestrator starts it
as a subprocess and talks to it over stdio.
3. **The orchestrator** passes the tool list to the model, runs the tools the model asks
for, and sends the results back. Neither Olala nor Ollama connects to an MCP server by
itself.
**What leaves the machine.** The questions, the answers and the model stay on the
machine. The tools need the Internet to fetch the data: each tool call sends the arguments
chosen by the model (company name or SIREN, postcode, municipality name or INSEE code,
Légifrance search words) to the public APIs listed above; the DVF tool also reads the
data.gouv.fr catalogue to find the yearly files. This project's code makes no other
requests. Installing the model downloads it once from Hugging Face. If `llm.base_url` in
`config.json` points to another machine, the orchestrator and the benchmark print a warning
at startup: questions and tool results would then be sent there.
## Tools
| Tool | Data source | Key | Notes |
|---|---|---|---|
| `search_companies` | Recherche d'entreprises API (DINUM) | none | Name, address, director, SIREN/SIRET; filters: municipality name or INSEE code, postcode, department (any establishment), NAF codes and activity section (main activity). Returns the filters applied, the total count and up to 25 companies |
| `count_companies` | same | none | Number of companies matching filters (municipality, NAF codes, activity section, department, postcode), without a list |
| `company_profile` | same | none | Directors (no birth date or nationality), published financials, labels, collective agreements |
| `find_municipality` | Découpage administratif API (geo.api.gouv.fr) | none | Name → INSEE code, ranked by population; arrondissements of Paris, Lyon and Marseille by name ("Paris 11e") |
| `property_prices` | DVF géolocalisées via the data.gouv.fr Tabular API | none | Median and quartile price per m², houses and apartments, per municipality (name or INSEE code) and year or half-year |
| `search_legifrance` | Légifrance API (DILA) via PISTE | PISTE OAuth | Only registered when `LEGIFRANCE_CLIENT_ID` and `LEGIFRANCE_CLIENT_SECRET` are set. **Not tested against the live API.** |
| `read_legifrance_article` | same | PISTE OAuth | Article text and dates of validity. **Not tested against the live API.** |
All tools are read-only. They return compact JSON to fit small context windows
(Olala mini has 32K tokens).
## What was checked, and what it changes
Each claim below was checked against the primary source on 2026-11-23/24. Findings that
shaped the code:
**Running Olala locally.** The model card states that "Ollama, LM Studio and the official
llama.cpp, vLLM and mlx-lm cannot load Olala 1.0 mini yet" and points to OVHcloud's forks
(vLLM, llama.cpp, MLX). On a Mac, this project uses the mlx-engine fork (Quick start,
step 3). With Ollama, use another tool-calling model (the Ollama tool-calling guide uses
`qwen3`). The model card gives 6.8B parameters in total, about 1B active per token, a 32K
context and the Apache 2.0 licence.
**The model card's own limits.** It recommends short, single-purpose requests, and lists as
out of scope "answering from memory where accuracy matters: facts, figures, legal, medical
or financial information" and decisions with legal effects without review by a qualified
person. The orchestrator therefore handles each question separately and instructs the model
to answer only from tool results.
**"SIRENE".** The free Recherche d'entreprises API is not full access to the Sirene
database: it searches companies by name or address, excludes companies that opted out of
public disclosure, and allows 7 requests per second per IP and 30 per second per ASN. For
full Sirene data, the API documentation points to
https://api.gouv.fr/guides/quelle-api-sirene. Results include the RNE flag
`opposition_diffusion_commerciale` (objection to the reuse of the company's data for
commercial prospecting, GDPR art. 21); it is returned as `objects_to_commercial_prospecting`
and must be honoured for any prospecting use.
**DVF.** The DGFiP states that the DVF file contains personal data, that its use must not
allow re-identification (article R112 A-3 of the Livre des procédures fiscales) and that
reuse must not allow indexing by search engines. The `property_prices` tool returns only
aggregated statistics per municipality. DVF does not cover Alsace, Moselle or Mayotte.
In October 2026, the per-municipality files were replaced by yearly files; the old files
are marked as archived and due for deletion. The tool uses the data.gouv.fr Tabular API on
the yearly files instead, which has been possible since 2026-11-18. Paris, Lyon and
Marseille are published per arrondissement.
**Légifrance** requires a PISTE account, acceptance of the API terms and OAuth
`client_credentials` credentials. The official records consulted only give the sandbox
URLs; the production URLs used by default come from consistent third-party sources and can
be overridden (`LEGIFRANCE_TOKEN_URL`, `LEGIFRANCE_API_URL`).
## Quick start
### 1. Install this project
Requires Python 3.11 or later.
```bash
git clone https://github.com/Gleaming0427/french-open-data-mcp.git && cd french-open-data-mcp
```
```bash
python3.11 -m venv .venv
```
```bash
source .venv/bin/activate && pip install -e .
```
### 2. Check without a model
```bash
python -m unittest discover -s tests -t .
```
The tests use a fake OpenAI-compatible server (`tools/fake_llm.py`) and in-memory MCP
servers. They make no network calls. Messages such as "Tool … failed" are expected: some
tests check error cases.
### 3. Run Olala on a Mac (mlx-engine)
Requirements stated by the MLX model card and the fork: a Mac with Apple Silicon,
macOS 14 or later, Python 3.11. The model card recommends 16 GB of memory. The `q5e6`
folder (routed experts in 5 bits, the rest in 6 bits) is 4.9 GB.
In a separate terminal and a folder outside this project:
```bash
git clone https://github.com/OVHai-LLM/mlx-engine.git && cd mlx-engine
```
```bash
python3.11 -m venv .venv && .venv/bin/pip install -r requirements.txt
```
```bash
.venv/bin/hf download OVHaiLLM/Olala-v1.0-mini-7A1B-MLX --include "q5e6/*" --local-dir ./olala-mlx
```
```bash
export MLX_ENGINE_API_KEY=choose-a-value
```
```bash
.venv/bin/python -m mlx_engine.server --model ./olala-mlx/q5e6 --host 127.0.0.1 --port 8000 --context-length 8192 --parallel-sessions 1
```
On an M1, the MLX model card says to run `export OLALA_MOE_V3=0` before starting the
server. `--context-length` goes up to 32,768 (model card). Keep this terminal open while
you use the orchestrator. With `--host 127.0.0.1`, the server only accepts connections
from this Mac.
Server constraints, read in the fork's source code (commit `58083ca`, 2026-11-18): responses
are streamed only (`stream: true`); `temperature` and `top_k` are required; `tool_choice`
accepts `auto` or `none`; `reasoning_effort` goes in `chat_template_kwargs`; the request is
rejected (HTTP 400) when a past tool call has arguments that are not valid JSON, so the
orchestrator sends `{}` in that case. The default `llm` block of `config.example.json`
follows these constraints, with the sampling recommended by the model card
(`temperature 0.8, top_p 0.9, top_k 40`).
### 4. Ask questions
In this project's folder, with its virtual environment active:
```bash
cp config.example.json config.json
```
```bash
cp .env.example .env
```
Open `.env` in an editor and set `MLX_ENGINE_API_KEY=` to the value chosen in step 3. The
file is listed in `.gitignore`, so it is not committed. The orchestrator and the server read
`.env` from the current directory at startup (another file: `--env-file PATH`). A variable
already set in the terminal takes precedence over the file.
```bash
python -m fr_open_data.orchestrator --config config.json --check
```
```bash
python -m fr_open_data.orchestrator --config config.json --question "Prix médian des appartements à Beaune en 2025 ?"
```
Without `--question`, the orchestrator starts an interactive prompt.
Tested on 2026-11-24 with Olala through mlx-engine on a Mac: `--check` returned
`Model: 'OK'`, and for the question above the model called `find_municipality`, then
`property_prices` with the INSEE code of Beaune (21054) and the year 2025.
### 5. With another local model (Ollama)
Copy the `ollama_local` block from `_other_llms` into `llm` in `config.json`. Ollama serves
an OpenAI-compatible API at `http://localhost:11434/v1` that supports tools; the block turns
streaming off and omits `tool_choice`, and the context length must be raised with a
Modelfile (see section 8). The model must support tool calling.
### 6. In another MCP client on the same machine
Command: `python -m fr_open_data.server` (run from the virtual environment). The server
speaks MCP over stdio.
### 7. Measure (benchmark)
The protocol, fixed before the measurements, is in [`bench/PROTOCOL.md`](bench/PROTOCOL.md):
question sets, success criterion, how the settings of Olala are chosen, which models are
compared, and what may not change once the test runs have started.
- `bench/questions_dev.json`: 32 development questions, which may be used to choose settings.
- `bench/questions_test.json`: 40 test questions (8 categories of 5), never used to choose
anything. Check first that every question has its data, without any model:
```bash
python -m bench.run --validate --questions bench/questions_test.json
```
Then, with the model server running (example: Olala on the test set):
```bash
python -m bench.run --config config.json --runs 3 --questions bench/questions_test.json --label "Olala q5e6, reasoning medium, test" --server-version "mlx-engine (OVHcloud fork) 58083ca"
```
A run counts as a success when the expected tool call succeeded with the expected data (for
DVF, the right municipality and period) and the answer contains the figure the tool
returned in that run (or the expected text; or no euro amount where DVF has no data).
Results go to `bench/results/<date>-<time>/`: `summary.md` (success with 95% intervals, by
category and by question, failures with the calls made), `runs.jsonl` (every answer and
tool result; it stays on your machine, see [What is never committed](#what-is-never-committed))
and `meta.json` (machine, model, settings, commit; identifiers recorded before 2026-11-26
are listed with their current ones in [`bench/results/COMMITS.md`](bench/results/COMMITS.md)). Token counts come from the
model server when it reports them; tokens/s include prompt processing. Runs hit by a public
API error (network, HTTP 429 or 5xx) are shown separately. Whether the answer names the
source of the data is reported, but is not part of the success criterion. The script does
not measure memory: read the model server's memory use in Activity Monitor.
`python -m bench.run --summarize latest` rebuilds `summary.md` from the stored runs.
### 8. Compare with another local model (Ollama)
`bench/config.ollama.json` measures any model served by Ollama with the same MCP server,
instructions and limits. From the Ollama documentation (consulted 2026-11-24): its
OpenAI-compatible endpoint supports tools but lists `tool_choice` as unsupported, so the
config omits it; streaming with tools is documented only for the native API, so the config
turns streaming off; the default context is 4k tokens below 24 GiB of VRAM and cannot be
changed per request on that endpoint, so a model with `PARAMETER num_ctx` is created, with
the 8192 tokens the Olala server uses:
```bash
ollama pull qwen3:8b
```
```bash
printf 'FROM qwen3:8b\nPARAMETER num_ctx 8192\n' > Modelfile.qwen3-8b && ollama create qwen3-8b-ctx8k -f Modelfile.qwen3-8b
```
```bash
python -m bench.run --config bench/config.ollama.json --model qwen3-8b-ctx8k --runs 3 --questions bench/questions_test.json --label "qwen3:8b (Ollama), test" --server-version "$(ollama --version)"
```
To state with any comparison: Ollama and mlx-engine are different engines, so speeds are
not comparable; Ollama models run with their own default sampling and thinking; the tools
were developed while testing Olala.
### Results
Phase 2 of the protocol: the 40 test questions, 3 runs each (120 runs per model), on the
same Mac (M2 Max, 32 GB) with the same MCP server, instructions and limits. No run was hit
by a public API error. Each folder's `summary.md` gives the results by category and by
question, and the failures with the calls made.
| Model | Served by | Size | Success (95% interval) | Answers naming the source | Median time per run | Results |
|---|---|---|---|---|---|---|
| gpt-oss:20b | Ollama 0.40.18 | 13 GB | 120/120 (97%-100%) | 97/105 | 7.1 s | [`20261127-095642`](bench/results/20261127-095642/summary.md) |
| qwen3:8b | Ollama 0.40.6 | 5.2 GB | 120/120 (97%-100%) | 105/105 | 24.5 s | [`20261125-134910`](bench/results/20261125-134910/summary.md) |
| qwen3:4b | Ollama 0.40.18 | 2.5 GB | 118/120 (94%-100%) | 104/109 | 45.5 s | [`20261127-070506`](bench/results/20261127-070506/summary.md) |
| gemma4 (8B) | Ollama 0.40.18 | 9.6 GB | 117/120 (93%-99%) | 102/102 | 14.3 s | [`20261127-092809`](bench/results/20261127-092809/summary.md) |
| qwen3.5:4b | Ollama 0.40.18, MLX runner | 4.0 GB | 114/120 (90%-98%) | 28/111 | 8.0 s | [`20261127-091013`](bench/results/20261127-091013/summary.md) |
| Olala 1.0 mini, `q5e6`, reasoning low | mlx-engine (OVHcloud fork) `58083ca` | 4.9 GB | 113/120 (88%-97%) | 68/108 | 15.5 s | [`20261125-123052`](bench/results/20261125-123052/summary.md) |
| qwen3:1.7b | Ollama 0.40.18 | 1.4 GB | 106/120 (81%-93%) | 103/103 | 8.1 s | [`20261127-085127`](bench/results/20261127-085127/summary.md) |
| ministral-3:8b | Ollama 0.40.6 | 6.0 GB | 84/120 (61%-77%) | 78/91 | 6.2 s | [`20261125-132556`](bench/results/20261125-132556/summary.md) |
| llama3.2:3b | Ollama 0.40.18 | 2.0 GB | 68/120 (48%-65%) | 48/85 | 2.0 s | [`20261127-101044`](bench/results/20261127-101044/summary.md) |
| mistral:7b | Ollama 0.40.6 | 4.4 GB | 14/120 (7%-19%) | - | 2.4 s | [`20261125-134016`](bench/results/20261125-134016/summary.md) |
- **The top is saturated**: four models succeed in 117 runs or more. This test set separates
the small models, not the strongest ones.
- **Two Ollama versions**: qwen3:8b, ministral-3:8b and mistral:7b ran on Ollama 0.40.6, the
other Ollama models on 0.40.18 (Ollama was updated between the runs, see
`bench/PROTOCOL.md`). Ollama ran qwen3.5:4b with its MLX runner, the others with its
llama.cpp runner.
- **Times** are medians per run, prompt processing and thinking included. They compare only
models with the same server and runner: the five llama.cpp models on Ollama 0.40.18.
qwen3:4b thinks at length (268,705 output tokens for its 120 runs).
- **mistral:7b called no tool** in any of its 120 runs. Its 14 successes are all in the
category where DVF has no data, where the criterion is the absence of a figure. This is
a limit of the model, not a parsing error: checked on 2026-11-27 with Ollama 0.40.18, 3
requests per case, it calls a tool when it is given only one, in English or in French
(`find_municipality` alone included). Given the 5 tools of this server, it writes the call
as plain text instead of its tool-call format, and with the system prompt as well it
answers from memory, often wrongly (51100 or 02100 as the INSEE code of Reims, whose
code is 51454).
- **llama3.2:3b** fails mostly on company counts (by NAF code 1/15, by activity section
4/15) and half-years (4/15).
- **ministral-3:8b** called no tool in 25 runs; most of its failures are DVF questions
(town 6/15, arrondissement 3/15, half-year 5/15).
- **Olala** failed 7 runs: company counts by NAF code (11/15) and by activity section
(13/15), and one arrondissement (14/15).
- **qwen3.5:4b** had one run stopped by an Ollama error (HTTP 500 while reading a tool
call), and rarely named the source of the data (28/111).
- **Not run**: granite4:tiny-h, ministral-3:3b and ministral-3:14b, registered in the
protocol.
- **Memory is not reported**: the figures of `ollama ps` did not match the models (3.3 GB for
gemma4, whose files take 9.6 GB). "Size" is the size of the model files.
- **To state with these figures**: the runs of one question are not independent, so the
real uncertainty is larger than the intervals; the Ollama models are 4-bit quantizations
run with Ollama's default sampling and thinking; the tools were developed while testing
Olala. "Answers naming the source" counts the runs where a tool returned data (keyword
check, not part of the criterion).
**What the earlier runs showed.** Their folders were removed on 2026-11-26.
- *Phase 1* (development set, 64 runs per setting of Olala): `q5e6` with reasoning low
60/64, medium 61/64, high 56/64; `q8` low 58/64. Low was chosen, within 2 runs of medium
and faster; among its failures were two answers with an invented fact, against none for
medium. Details in [`bench/PROTOCOL.md`](bench/PROTOCOL.md).
- *Exploratory runs* (2026-11-24, tools v1 to v3, no fixed protocol, scores not
comparable): the model passed an INSEE code other than the one it had looked up (the
tools now take municipality names); gave the number of companies listed (5) instead of
the total, put the activity in the search text or passed a section letter as a NAF code;
asked for the whole city instead of an arrondissement, wrote the first half of 2026 as
"2026-S2" or "2026-01", and did not retry after an error. It never invented a figure for
areas DVF does not cover (9/9). The tools v4 address these failures. On the held-out
questions, qwen3:8b already had 72/72 against 57/72 for Olala (re-checked).
## What is never committed
The repository is public. These files stay on your machine (`.gitignore`):
- `.env` and `config.json`: keys and local settings;
- `runs.jsonl` in `bench/results/`: the raw runs keep the full tool results, which include
personal data from public registers (names of company directors, names and addresses of
sole proprietors). The raw runs were removed from the history of every branch on
2026-11-25. `summary.md` and `meta.json` are published. In the failures that `summary.md`
lists, the SIREN and SIRET numbers that the question does not contain are replaced by
`[SIREN]`: a company returned by a tool may be a sole proprietor, whose SIREN identifies a
natural person.
Two Git hooks in `.githooks/` refuse a commit or a push that would publish personal data: a
`runs.jsonl` file, an absolute path to a home folder (such as `/Users/<name>/...`, which
contains the name of the account), an author or committer email that is not a GitHub
noreply address, or a word listed in `.git/info/private-words`. Enable them once in each
clone:
```bash
git config core.hooksPath .githooks
```
Then list the words that must never be published, one per line, for example your first and
last name (the file is inside `.git`, so it is never committed):
```bash
printf 'Firstname\nLastname\n' >> .git/info/private-words
```
The hooks need `python3` (installed with the macOS developer tools, like Git).
`git commit --no-verify` or `git push --no-verify` skips them. They check the commits being
sent, including a merge with an old clone made before a history rewrite.
## Configuration (`config.json`)
| Key | Meaning |
|---|---|
| `llm.base_url`, `llm.model` | Local OpenAI-compatible endpoint and model id (mlx-engine serves one model and ignores the id) |
| `llm.api_key_env` | Name of the environment variable holding the key (never the key itself); it can be set in `.env`. `null` for Ollama |
| `llm.stream` | `true` (mlx-engine only accepts streaming) |
| `llm.tool_choice` | `auto` by default; `null` omits it (Ollama's OpenAI-compatible endpoint does not support it) |
| `llm.max_tokens` | Maximum length of each model reply (default 4096) |
| `llm.params` | Added to every request (sampling, `chat_template_kwargs`) |
| `mcp_servers[].command` | Command that starts the MCP server as a subprocess (stdio) |
| `mcp_servers[].tools` | Keep only these tools (small models choose better among few tools) |
| `system_prompt` | Replaces the default instructions given to the model |
| `max_turns`, `max_result_chars` | Limits of the tool loop (model requests per question, characters of a tool result sent to the model) |
| `max_tool_calls` | Tools actually run per question (default 10); beyond it, the model is told to answer with the results it has. The benchmark runs never exceeded 5 |
An MCP server that cannot be started is skipped with a warning. Tool errors are passed to
the model as text, so it can report them instead of guessing.
## Limits
- **Légifrance is untested** against the live API. Request building follows the published
specification and response parsing is defensive. Verify before relying on it.
- **DVF statistics are an approximation.** Only sales of a single dwelling are kept, and
the price per m² of houses includes the land. It is not an official index.
The rows of a municipality are read in one request to the Tabular API JSON export:
Toulouse 2025, 24,586 rows, took 2.3 s on 2026-11-24. Beyond the export limit (50,000
rows in api-tabular's default configuration), the tool reads at most 12,000 rows and
says that the figures are partial.
- **The data.gouv.fr Tabular API can be briefly unavailable.** On 2026-11-24 it answered
HTTP 503 (PostgREST error PGRST002) for the DVF 2025 file while the other DVF files
answered; the same query worked again shortly after. Each request is retried once; if it
still fails, the tool returns the error and the model reports it.
- **Small model.** Olala mini has about 1B active parameters per token (model card); OVHcloud
reports 59.6 on the BFCL V3 tool-calling benchmark, measured with `reasoning_effort`
high. In the exploratory runs, it handled simple lookups well and failed mostly when the
question had to be turned into parameters (half-year, arrondissement, activity section)
or a total had to be read from a search result. With the tools v4, it succeeded in 113
of the 120 test runs; its failures were company counts and one arrondissement (see
[Results](#results)).
- **Not advice.** Answers are not legal, tax or financial advice. Check important
answers against the cited source.
## Project layout
```
fr_open_data/
server.py MCP server (stdio)
companies.py Recherche d'entreprises API
municipalities.py geo.api.gouv.fr
dvf.py DVF via the data.gouv.fr Tabular API
legifrance.py Légifrance via PISTE (optional, untested live)
orchestrator.py tool loop between a local OpenAI-compatible LLM and MCP servers
llm.py streaming chat client (standard library)
http.py HTTP helper (User-Agent, one retry on 429/502/503/504 and network errors)
envfile.py .env reader (standard library)
bench/PROTOCOL.md benchmark protocol (fixed before the measurements)
bench/run.py benchmark: runs, checks, summaries, --validate, --summarize
bench/questions_dev.json development questions (may be used to choose settings)
bench/questions_test.json test questions (never used to choose anything)
bench/config.ollama.json configuration for measuring a model served by Ollama
bench/results/ phase 2 results (summary.md and meta.json of each run), COMMITS.md
tools/fake_llm.py fake OpenAI-compatible server for tests
.githooks/ pre-commit and pre-push checks against publishing personal data
tests/ offline tests (unittest)
config.example.json
.env.example template for .env (keys)
LICENSE Apache License 2.0
```
## Sources (consulted 2026-11-23/24)
- Olala model card: https://huggingface.co/OVHaiLLM/Olala-v1.0-mini-7A1B
- Olala MLX model card: https://huggingface.co/OVHaiLLM/Olala-v1.0-mini-7A1B-MLX
- OVHcloud's mlx-engine fork: https://github.com/OVHai-LLM/mlx-engine
- Recherche d'entreprises API: https://recherche-entreprises.api.gouv.fr/openapi.json and https://www.data.gouv.fr/dataservices/api-recherche-dentreprises
- DVF (DGFiP): https://www.data.gouv.fr/datasets/demandes-de-valeurs-foncieres/
- DVF géolocalisées: https://www.data.gouv.fr/datasets/demandes-de-valeurs-foncieres-geolocalisees/
- Légifrance on data.gouv.fr: https://www.data.gouv.fr/dataservices/legifrance
- Légifrance API specification: https://github.com/betagouv/api_gouv_swaggers (`swaggers/api-legifrance-v2.json`)
- PostgREST error codes: https://github.com/PostgREST/postgrest/blob/main/docs/references/errors.rst
- data.gouv.fr Tabular API source code (JSON export, limits): https://github.com/datagouv/api-tabular
- Découpage administratif API specification (`boost` parameter): https://github.com/datagouv/api-geo (`definition.yml`)
- Ollama, tool calling and OpenAI compatibility: https://docs.ollama.com/capabilities/tool-calling and https://docs.ollama.com/api/openai-compatibility
- MCP Python SDK (v2): https://pypi.org/project/mcp/
## Licence
The code of this repository is under the Apache License 2.0 (see [`LICENSE`](LICENSE)). The
data returned by the public APIs, including the figures quoted in `bench/results/`, keep the
terms of their sources (see Sources above), and each model keeps its own licence.
TDQS
Scored across 5 tools
Each tool has a clearly distinct role: company search, company detail, company count, municipality lookup, and property price statistics. The descriptions explicitly direct users between related tools, such as using search_companies for discovery and company_profile for details, or count_companies for 'how many' questions. There is no meaningful overlap that would cause misselection.
All names use snake_case and are readable, but the pattern is not fully uniform: search_companies, count_companies, and find_municipality are verb_noun, while company_profile and property_prices are noun phrases. This is a minor deviation rather than a confusing inconsistency.
Five tools are well-scoped for a focused French open-data server covering company lookup and property price queries. Each tool earns its place, with no redundant endpoints or obvious filler.
The surface covers core company discovery, profiling, counting, municipality lookup, and property sale-price statistics. There are minor potential gaps, such as broader open-data domains or non-sale property data, but the main workflows are well supported.