Skip to main content
Glama

Price benchmark for a CPV code

get_price_benchmark
Read-onlyIdempotent

Computes 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

NameRequiredDescriptionDefault
cpvYesOne CPV / ДК 021 code or prefix, e.g. 09134200-9 or 0913
vatNoFilter awards by VAT inclusionany
unitNoUnit of measure as code (KGM, LTR, H87) or name (кг, л, шт); default: the most common unit
queryNoKeywords to narrow the items, e.g. 'А-95'
date_toNoAward date on or before
regionsNoUkrainian regions by name or slug
date_fromNoAward date on or after

Output Schema

NameRequiredDescriptionDefault
nYesAwards used in the distribution
cpvYes
maxNo
minNo
p25No
p75No
meanNo
noteNo
unitNo
basisYes'unit_price' (single-item lots) or 'total_value' (award totals)
medianNo
sourceNoProzorro (prozorro.gov.ua), open data
samplesNoAwards closest to the median
currencyNoUAH
unit_nameNo
other_unitsNo
period_daysYes
n_excluded_outliersNo
vat_included_share_pctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuinely useful methodology beyond that: single-item lots with a quantity only, obvious outliers excluded, fallback to award totals, and that the awards closest to the median are returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences with no filler, and the core method (distribution of awarded unit prices for a CPV code) is front-loaded. Slightly heavy noun stacking, but every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and full parameter coverage, the description needn't explain return values; it still supplies the cohort definition and fallback rule an agent needs to interpret results. Only the empty/no-data case is left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter (cpv, vat, unit, query, dates, regions) is already documented in the schema. The description adds only indirect meaning, e.g. the 'single-item lots with a quantity' scope that contextualizes the unit filter, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: computes the distribution of awarded unit prices for a CPV code, enumerating the exact statistics returned (n, min, quartiles, median, max, mean). This is clearly distinct from sibling tools such as lookup_cpv, find_awards, or the profile getters.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains internal behavior branching (falls back to award totals when no unit prices exist), which implies when results will differ, but it never states when an agent should pick this tool over siblings like find_awards or lookup_cpv, nor any exclusion conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources