Fr Decp Contract Stats
fr_decp_contract_statsAggregate French public-contract AWARD counts (DECP), grouped by one dimension, over the same filters as fr_decp_search_contracts (buyer, supplier, CPV, department, amount range, date range, keyword). Answers "which departments/regions/CPV codes/buyer types won the most French public contracts matching X" without pulling every matching row. Returns one row per group value with its contract count, sorted by count descending.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"limit": 5,
"keyword": "informatique",
"group_by": "acheteur_departement_nom"
},
"name": "fr_decp_contract_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of group rows to return (1-100). Default 20. | |
| date_to | No | Latest notification date, inclusive, YYYY-MM-DD. | |
| keyword | No | Free-text filter within the contract object (objet). | |
| cpv_code | No | CPV code, exact or leading-digits prefix. | |
| group_by | Yes | Dimension to group by: acheteur_departement_nom (buyer department), acheteur_region_nom (buyer region), acheteur_categorie (buyer type, e.g. Commune/Région), titulaire_categorie (supplier size category, e.g. PME/ETI/GE), titulaire_departement_nom (supplier department), codeCPV (CPV code), procedure (award procedure), type (Travaux/Fournitures/Services). | |
| date_from | No | Earliest notification date, inclusive, YYYY-MM-DD. | |
| buyer_name | No | Substring match on the awarding buyer's name. | |
| max_amount | No | Maximum contract amount in euros. | |
| min_amount | No | Minimum contract amount in euros. | |
| buyer_siret | No | Exact SIRET/SIREN of the awarding buyer. | |
| supplier_name | No | Substring match on the awarded supplier's name. | |
| supplier_siret | No | Exact SIRET of the awarded supplier. | |
| department_code | No | French department code of the awarding buyer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | No | ||
| source | No | ||
| group_by | No | ||
| data_as_of | No | The publisher's date for the file, never today's date; null with data_as_of_note when unreadable. | |
| group_count | No | ||
| answered_from | No | ||
| data_as_of_note | No |