Price benchmark for a CPV code
get_price_benchmarkComputes the distribution of awarded unit prices (n, min, 25th percentile, median, 75th percentile, max, mean) for a CPV code from single-item lots with a quantity, excluding obvious outliers. Falls back to the distribution of award totals when no unit prices exist. Includes the awards closest to the median.
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": {
"cpv": "<cpv>"
},
"name": "get_price_benchmark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpv | Yes | One CPV / ДК 021 code or prefix, e.g. 09134200-9 or 0913 | |
| vat | No | Filter awards by VAT inclusion | any |
| unit | No | Unit of measure as code (KGM, LTR, H87) or name (кг, л, шт); default: the most common unit | |
| query | No | Keywords to narrow the items, e.g. 'А-95' | |
| date_to | No | Award date on or before | |
| regions | No | Ukrainian regions by name or slug | |
| date_from | No | Award date on or after |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Awards used in the distribution | |
| cpv | Yes | ||
| max | No | ||
| min | No | ||
| p25 | No | ||
| p75 | No | ||
| mean | No | ||
| note | No | ||
| unit | No | ||
| basis | Yes | 'unit_price' (single-item lots) or 'total_value' (award totals) | |
| median | No | ||
| source | No | Prozorro (prozorro.gov.ua), open data | |
| samples | No | Awards closest to the median | |
| currency | No | UAH | |
| unit_name | No | ||
| other_units | No | ||
| period_days | Yes | ||
| n_excluded_outliers | No | ||
| vat_included_share_pct | No |