Rank top buyers or suppliers (DECP)
rank_decp_partiesIdentifies and ranks top buyers or suppliers in French awarded public contracts by contract count or total value, with filters for CPV sector, department, keywords and dates.
Instructions
Rank the top buyers or suppliers of French awarded contracts (DECP).
Use for: "who are the main suppliers of IT services in Occitanie in 2025", "which
buyers spend most on cleaning". Aggregated upstream over all matching contracts, not
only a page. Example: by="supplier", order="amount", cpv_prefix="72", department="31".
Do NOT use to list individual contracts (search_decp_awards). Read caveats: DECP
coverage is incomplete and amounts are notified values, not payments.
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": {
"by": "<by>"
},
"name": "rank_decp_parties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | `buyer` = who purchases most, `supplier` = who wins most. | |
| top | No | Number of ranks (1-50). | |
| order | No | Rank by number of contracts or by total amount (EUR). | count |
| keywords | No | Words that must all appear in the title/object, in French for BOAMP/DECP. Words of 4 letters or fewer (acronyms: IA, ERP, SIG) match whole words only; longer words also match their plurals. | |
| cpv_prefix | No | CPV code or prefix, 2-8 digits (e.g. 72 = IT, 7222 = IT consulting). Optional check digit (-N, as stored in DECP) is ignored. | |
| department | No | Department code: 01-95, 2A, 2B or 971-976. | |
| buyer_siret | No | Restrict to one buyer (14-digit SIRET). | |
| notified_to | No | Latest date, ISO YYYY-MM-DD. | |
| notified_from | No | Earliest date, ISO YYYY-MM-DD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | `buyer` or `supplier`. | |
| hint | No | What to change when nothing matched. | |
| order | Yes | `count` or `amount`. | |
| caveats | No | ||
| entries | Yes | ||
| filters | No | ||
| total_contracts | Yes | Contracts matching the filters (all ranks). |