Skip to main content
Glama
marches-publics

marches-publics

Find CPV codes from words

search_cpv_codes
Read-onlyIdempotent

Match activity words to CPV 2008 labels to identify the right procurement code before searching notices. Use the returned code or prefix with notice search tools.

Instructions

Find CPV 2008 codes whose label matches the words (official EU nomenclature, offline).

Use before a search when the user names an activity instead of a code. Shorter codes (e.g. 90910000) are broader; pass their significant digits as a prefix ("9091") to the search tools. Do NOT use to find notices: use the search_* tools with the code found.

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": {
      "text": "<text>"
    },
    "name": "search_cpv_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLabel language of `text`.fr
textYesWords to look up in CPV labels (prefix match, accents ignored).
limitNoMax codes returned.

Output Schema

NameRequiredDescriptionDefault
hintNoWhat to change when nothing matched.
matchesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations it discloses that the lookup is local/offline, that labels come from official EU nomenclature, and that broader codes have shorter digits — meaningful behavior for interpreting results. Minor gap: 'offline' sits in slight tension with openWorldHint=true and it never says how results are ranked when many labels match.

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

Conciseness5/5

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

Four short sentences, front-loaded with purpose, then usage, then the code-prefix mechanic, then the exclusion. Nothing is repeated from the schema and 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?

Read-only lookup with full annotation coverage, a 100%-documented three-parameter schema and an output schema, so return values need no prose. Purpose, trigger, exclusion and result-handoff are all covered.

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 coverage is 100%, so text, lang, limit, defaults and the accent-insensitive prefix-match rule are already documented in structured fields. The description's note about passing '9091' as a prefix explains downstream usage rather than adding parameter meaning, 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 – 'Find CPV 2008 codes whose label matches the words' – and pins down the dataset ('official EU nomenclature, offline'). It also separates itself from the notice-search siblings by name, so an agent can pick it without opening another schema.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('Use before a search when the user names an activity instead of a code') and an explicit exclusion ('Do NOT use to find notices: use the search_* tools with the code found'). It even closes the loop on what to do with the result, which is more than most definitions offer.

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