Skip to main content
Glama

ApriFile

Explain an SdI notice or PEC receipt

explain_sdi_notice
Read-onlyIdempotent

Explains in plain language an Italian SdI notice (ricevuta di consegna RC, notifica di scarto NS, mancata consegna MC, esito NE, decorrenza termini DT, AT, metadati MT) or a PEC receipt (daticert.xml: accettazione, avvenuta consegna, mancata consegna and others), and what to do next. For rejections it lists each error code with the official SdI description and how to fix it. Also accepts bare SdI error codes such as 00404. Use when the user asks what a notice, receipt or SdI error code means.

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": "explain_sdi_notice"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoA file the user attached in the chat.
xml_textNoThe notice or daticert.xml content as text.
error_codesNoSdI error codes to explain, for example ["00305", "00404"].
content_base64NoThe notice file encoded in base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restating. The description does add genuine value beyond them, notably what the response contains: each error code with its official SdI description plus a fix, and that it will also handle a bare code like 00404. However, it is silent on behavior an agent actually needs here — four alternative input channels (file, xml_text, content_base64, error_codes) with zero required parameters, and no statement of precedence or what happens if none or several are supplied.

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 sentences, front-loaded with the core purpose and closing with the usage trigger. The parenthetical abbreviation lists are dense but earn their space by letting an agent match the user's jargon (NS, MC, DT). Slightly heavy in enumeration, but nothing is padded.

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?

With no output schema, the description usefully sketches the return content (plain-language explanation, per-code official description and remediation), and the annotations plus 100% schema coverage cover the rest. The remaining gap is input selection among four optional channels, which the description never addresses.

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 description coverage is 100%, including the error_codes pattern and example ["00305", "00404"], so the schema already carries parameter meaning. The description's "also accepts bare SdI error codes such as 00404" restates the schema example rather than extending it. Baseline 3 is appropriate when the schema does the explanatory work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb ("explains in plain language") plus a precise resource set: SdI notice types enumerated by their Italian abbreviations (RC, NS, MC, NE, DT, AT, MT), PEC daticert.xml receipts, and bare SdI error codes. An agent knows exactly what class of artifact this handles. It stops short of naming a sibling, so the boundary with summarize_einvoice (also an Italian e-invoicing tool) is left implicit rather than stated.

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?

Ends with an explicit trigger: "Use when the user asks what a notice, receipt or SdI error code means." That is a clear positive condition. There is no when-not guidance and no named alternative for adjacent cases (e.g. a full invoice rather than a notice), so routing against siblings still requires inference.

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