fr_events_batch
Check BODACC legal events for MANY companies at once (e.g. screen 700 SIRENs for collective proceedings) — batched into a few upstream requests.
Deterministic: returns a flat annonces list — one row per announcement
AND per requested SIREN it names (a sale names both parties: requesting
both gives two rows, same bodacc_id; a non-requested party never shows
up). Each row's partie is that SIREN's role: sujet, ancien_proprietaire,
ancien_exploitant, nouveau_titulaire, or indeterminee (the announcement
does not say — do not guess). synthese counts on the requested SIRENs
(sirens_avec_annonce, sirens_sans_annonce, par_partie, …; annonces_total =
distinct announcements, lignes_total = rows).
texte is the announcement's wording for EVERY family (jugement,
modification or sale descriptif… — texte_source names the field);
rows the source serves without it are counted in annonces_sans_texte.
It does NOT decide whether a company is in proceedings, nor what a
modification changed (a director or just the auditor): read texte and
judge per SIREN — counting announcements is not a signal.
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": {
"sirens": "<sirens>"
},
"name": "fr_events_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| sirens | Yes | list of SIRENs (9 digits). | |
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| date_to | No | latest publication date, inclusive (YYYY-MM-DD). A malformed date or date_from > date_to is refused; `synthese.periode` echoes the window the counts apply to. It filters on publication, not on the jugement date (`date_jugement`). | |
| famille | No | BODACC family CODE (the schema lists them). Default "collective" (procédures collectives); None = all families. The output `famille` is a LABEL ("Modifications diverses"), not an input: pass the code ("modification"). Unknown values are refused. | collective |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| _instance | No | Instance de connecteur PRÉCISE (un credential exact). `oto_instance(op='list')`. | |
| date_from | No | earliest PUBLICATION date, inclusive (YYYY-MM-DD). None = no lower bound (the whole history comes back). |