Skip to main content
Glama

Procurement market statistics

procurement_stats
Read-only

Compare legal-entity buyer and Common Procurement Vocabulary (CPV) markets across retained history. Notices, procedure folders and observed notice-lots are separate; revisions remain separate lots. Includes tender-count coverage, single-tender share with known denominator, observed winner coverage and year/buyer/category tables. Rates below five observations are withheld. Indicators are not findings, corruption scores or expenditure. Estonian Public Procurement Register attribution accompanies results. Tables have up to 50 rows; truncated results retain totals. Old snapshots return available=false and empty tables. Use procurement_notices for individual notices and open tenders. Do not look up natural persons.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "procurement_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpvNoCommon Procurement Vocabulary (CPV) prefix
buyerNoBuyer name or registry-code contains match

Output Schema

NameRequiredDescriptionDefault
cpvNo
noteNo
as_ofYes
buyersNo
by_yearNo
sourcesYes
summaryNo
availableNo
cpv_totalNo
truncatedNo
disclaimerYes
snapshot_idYes
buyers_totalNo
by_year_totalNo
disclaimer_enNoEnglish disclaimer: extract of official public open data; not an official register extract, legal advice, or a credit decision.
source_detailsYesFull attribution and acquisition evidence: source_metadata(source_key).
omitted_sectionsNoSections removed to fit the response budget, including default sections. Request one named section to retrieve it. Present only when truncated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / disclaimer_en
      Added value: +{
      +  "description": "English disclaimer: extract of official public open data; not an official register extract, legal advice, or a credit decision.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / source_details / description
      Previous value: -"Full attribution and acquisition evidence: source_metadata(key)."New value: +"Full attribution and acquisition evidence: source_metadata(source_key)."
  3. Changed5 schema fields changed
    • addedOutput schema / properties / omitted_sections
      Added value: +{
      +  "description": "Sections removed to fit the response budget, including default sections. Request one named section to retrieve it. Present only when truncated.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / source_details
      Added value: +{
      +  "description": "Full attribution and acquisition evidence: source_metadata(key).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / as_of
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / key
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "snapshot_id",
      -  "as_of",
      -  "sources",
      -  "disclaimer"
      -]New value: +[
      +  "snapshot_id",
      +  "as_of",
      +  "sources",
      +  "source_details",
      +  "disclaimer"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / cpv / description
      Previous value: -"CPV prefix"New value: +"Common Procurement Vocabulary (CPV) prefix"
  5. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare a safe read (readOnlyHint true, non-destructive, closed world); the description adds substantial behavior beyond that: small-cell suppression ('Rates below five observations are withheld'), 50-row table cap with retained totals on truncation, and old snapshots returning available=false with empty tables. It also pre-empts misinterpretation by stating indicators are not findings, corruption scores, or expenditure, and notes the required Estonian Public Procurement Register attribution.

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?

Front-loaded with purpose and scope, then caveats, then routing and exclusions — a logical order with short sentences. It is dense, and the clause about notices/procedure folders/notice-lots versus revisions is compressed enough to need a second read, but no sentence is filler.

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

Completeness5/5

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

For a two-optional-parameter aggregate query with an output schema, the description covers everything an agent needs to act: what is compared, unit separation, suppression rules, truncation behavior, stale-snapshot failure mode, attribution, and what the numbers must not be read as. Return-value detail is correctly left to the output schema.

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% and both parameters (cpv prefix, buyer name/registry-code contains match) are fully documented in the schema. The description only implicitly echoes those dimensions ('buyer and CPV markets') and adds no matching semantics or example values, so the 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: 'Compare legal-entity buyer and CPV markets across retained history.' It also scopes the unit of analysis (notices, procedure folders, notice-lots kept separate, revisions as separate lots) and explicitly separates itself from procurement_notices, which handles individual notices and open tenders.

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

Usage Guidelines4/5

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

Gives a clear negative routing rule ('Use procurement_notices for individual notices and open tenders') and a hard exclusion ('Do not look up natural persons'). The positive case is framed as market comparison, which is concrete, but no guidance is offered on choosing between this and other aggregate siblings such as sector_stats or region_stats.

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