Skip to main content
Glama

Imperio — Italian Tax & Compliance Tools

Look up CAP

lookup_cap
Read-onlyIdempotent

Infers the province from the 2-digit PREFIX of an Italian CAP (postal code); it does NOT validate the CAP itself: valid: true only means 5 digits with a known prefix, not that the CAP exists (we have no list of issued CAPs). If the prefix belongs to a single province it is named in provincia_prefisso; if it is shared by several provinces (e.g. 23 = Sondrio or Lecco, 20 = Milano or Monza-Brianza) provincia_prefisso is null, stato_provincia is "incerta" (uncertain) and province_possibili lists the candidates. It does NOT return the municipality (comune is always null: we have no CAP→municipality table).

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": {
      "cap": "<cap>"
    },
    "name": "lookup_cap"
  }
}

Input Schema

NameRequiredDescriptionDefault
capYesThe 5-digit CAP (e.g. 20121).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / cap / description
      Previous value: -"Il CAP a 5 cifre (es. 20121)."New value: +"The 5-digit CAP (e.g. 20121)."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses the substantive limits: no list of issued CAPs, no CAP→municipality table, `comune` always null, and how shared prefixes are represented via `stato_provincia` = "incerta" and `province_possibili`. Those are the exact caveats that prevent an agent misreading the response as a validation result.

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?

The core capability and the disclaimers are front-loaded in the opening clause, and the two ambiguity examples (23, 20) make the uncertainty rule concrete. It is a dense single block with mild repetition between the 'no list of issued CAPs' and 'no CAP→municipality table' remarks, 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?

With one parameter and no output schema, the description carries the return-value burden itself and does so completely, naming each relevant output field (`valid`, `provincia_prefisso`, `stato_provincia`, `province_possibili`, `comune`) and its meaning. Nothing needed to call or interpret the tool is missing.

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

Parameters4/5

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

Schema coverage is already 100% for the single `cap` parameter, so the baseline is 3; the description earns an extra point by clarifying that only the 2-digit prefix drives the inference, which explains why a well-formed but non-existent CAP still yields a province.

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?

It names a specific verb and resource — infer a province from the 2-digit prefix of an Italian CAP — and immediately contrasts that with what it is not (a CAP validator). The agent can tell from the first clause exactly what transformation is performed on the input.

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?

The description clearly frames when the result is authoritative (single-province prefix) versus uncertain (shared prefix, with candidate list), and warns that `valid: true` is not an existence check. It stops short of naming a sibling validator to use instead, so the 'when to use something else' half of the guidance is left implicit.

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