Skip to main content
Glama

Imperio — Italian Tax & Compliance Tools

Validate PEC

validate_pec
Read-onlyIdempotent

Validates an Italian PEC (certified email) address: format + domain checked against the list of AGID-certified providers (Aruba, InfoCert, Namirial, Poste, etc.). is_pec_domain has THREE values: true (in the AGID list), false (not a PEC), null (the domain contains 'pec' but was NOT verified — not the same as false). The domain is checked, not the mailbox (non_verificato in the response).

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": {
      "email": "<email>"
    },
    "name": "validate_pec"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesThe PEC address to validate (e.g. mario.rossi@pec.it).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / email / description
      Previous value: -"L'indirizzo PEC da validare (es. mario.rossi@pec.it)."New value: +"The PEC address to validate (e.g. mario.rossi@pec.it)."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, non-destructive), and the description adds real behavioral detail beyond them: the three-valued `is_pec_domain` result, the crucial null-vs-false distinction, and the warning that the domain rather than the mailbox is verified. This is exactly the ambiguity an agent would otherwise mishandle when interpreting results.

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?

Three tight sentences with the core purpose front-loaded and the result-semantics caveat following immediately. The '(Aruba, InfoCert, Namirial, Poste, etc.)' parenthetical is illustrative rather than essential, a minor bit of weight.

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?

There is no output schema, so the description carries the burden of explaining return values, and it does explain the decisive field and its null case. It stops short of describing the overall response shape or the `non_verificato` flag's context fully, but nothing needed to call the tool correctly 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?

With a single parameter at 100% schema coverage the baseline is 3, but the description adds meaning the schema lacks by clarifying that only the domain portion of `email` is validated against the AGID list, which tempers expectations about the result.

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 an Italian PEC address') plus the exact mechanism ('format + domain checked against the list of AGID-certified providers'). This clearly separates it from the sibling validators (validate_iban, validate_codice_fiscale) that target different identifiers.

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 scope is unambiguous — this tool is for Italian PEC (certified email) addresses checked against AGID providers — so an agent knows the context in which to call it. It does not name alternatives or state when-not to use it, which keeps it just short of a 5.

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