Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as NovaPixel LexGrid. If you published it, claim ownership there.

CIG & CUP ANAC Tender Validator

cig_cup_anac_validator
Read-onlyIdempotent

[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

NameRequiredDescriptionDefault
cigNo10-character alphanumeric CIG code (e.g. 9876543210 or A012345678)
cupNo15-character alphanumeric CUP code (e.g. G12B23000010001)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / cig / description
      Previous value: -"10-character alphanumeric CIG code"New value: +"10-character alphanumeric CIG code (e.g. 9876543210 or A012345678)"
    • changedInput schema / properties / cup / description
      Previous value: -"15-character alphanumeric CUP code"New value: +"15-character alphanumeric CUP code (e.g. G12B23000010001)"
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the bracketed "pure calculation, read-only, side-effect free" is mostly redundant. What the description genuinely adds is the return object shape (cig.valid/type/checksumOk, cup.valid/lengthOk, isValid), which compensates since no output schema exists, but it says nothing about how the two independently optional parameters interact.

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?

Well structured and front-loaded into bracketed premise, Usage, and Returns blocks, so an agent can scan it quickly. The bracketed preamble repeats annotation content and could be trimmed without losing 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?

For a two-parameter pure function with no output schema, the description covers the domain rules and the exact return shape, which is what an agent needs to interpret results. The remaining gap is the zero-required-parameter semantics: it should state whether validating only a CIG or only a CUP is supported and what the absent field returns.

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 the baseline is 3. The description does add real meaning beyond the schema by specifying that CIG validity involves a checksum and an Ordinary/SmartCIG type classification, and that CUP is checked for length, but it never explains what happens when cig or cup is omitted, which matters because neither parameter is required.

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: validates Italian ANAC CIG (10-character, checksum, Ordinary vs SmartCIG under D.Lgs 36/2023) and CUP (15-character) codes against registry structure. That is far more precise than the title alone and lets an agent distinguish it from calculation tools without opening the schema.

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 an explicit when-to-use ("verify public tender code validity") and a named alternative with the selecting condition (threshold and publication deadline calculations go to 'bando_thresholds_calculator'). The only weakness is that the when-to-use sentence largely restates the purpose rather than adding a new trigger condition.

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