cig_cup_anac_validator
[Deterministic public procurement validation. Pure calculation, read-only, side-effect free]. Validates Italian ANAC CIG (10-character alphanumeric checksum, Ordinary CIG and SmartCIG under D.Lgs 36/2023) and CUP (15-character public investment code) against official tender registry structure. Usage: Use this tool to verify public tender code validity. For tender threshold and publication deadline calculations, use 'bando_thresholds_calculator' instead. Returns: JSON object with { cig: { valid: boolean, type: 'ORDINARY' | 'SMART' | null, checksumOk: boolean }, cup: { valid: boolean, lengthOk: boolean }, isValid: boolean }.
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": "cig_cup_anac_validator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cig | No | 10-character alphanumeric CIG code (e.g. 9876543210 or A012345678) | |
| cup | No | 15-character alphanumeric CUP code (e.g. G12B23000010001) |