Skip to main content
Glama
getpopapi
by getpopapi

Preserve / Archive SdI Document

pop_preserve_document
Idempotent

Archive SdI documents in certified long-term storage to comply with Italian legal preservation requirements.

Instructions

Archive an SdI document in long-term digital storage (conservazione sostitutiva).

Italian law requires electronic invoices to be preserved for 10 years. This tool archives a document in POP's certified digital storage system to meet legal preservation requirements.

IMPORTANT: Only call this tool when pop_get_invoice_status returns a status of RC (Ricevuta di Consegna — successfully delivered) or MC (Mancata Consegna — delivery failed but SdI accepted). Do NOT call for other statuses such as NS, EC, SE, or DT.

Requires: Basic+ plan with active SdI via POP integration.

Args:

  • uuid: UUID of the SdI document to archive

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesUUID of the SdI document to archive/preserve in long-term storage
environmentNoTarget environment (e.g. 'sandbox')
Behavior4/5

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

Annotations already provide readOnlyHint=false, idempotentHint=true, destructiveHint=false. The description adds context beyond annotations by explaining the legal preservation requirement and the status precondition. It does not explicitly state side effects (e.g., document becoming immutable), but given the annotations cover safety traits, the added context is sufficient.

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 description is well-structured: purpose, legal context, IMPORTANT usage rule, requirements, and args. It is slightly redundant ('Archive an SdI document...' and 'This tool archives a document...'), but each section serves a purpose and is front-loaded with the primary action.

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?

Given the tool has no output schema, the description provides enough context to call it correctly: when to call, prerequisites, and the single key parameter. It does not describe return values, but the action is simple and the annotations fill in the rest. This is complete for a straightforward archival tool.

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%, so the baseline is 3. The description repeats the uuid parameter but adds no extra meaning beyond the schema. The environment parameter is not mentioned in the description, but it is adequately described in the schema.

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?

The description opens with a specific verb and resource: 'Archive an SdI document in long-term digital storage.' This clearly distinguishes it from sibling tools like pop_get_sdi_document or pop_verify_sdi_document, which are read/check operations. The addition of 'conservazione sostitutiva' and the legal context further clarify scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use: only after pop_get_invoice_status returns RC or MC, and explicitly lists statuses to avoid (NS, EC, SE, DT). Also gives a prerequisite (Basic+ plan with active SdI). This is model guidance with both inclusion and exclusion criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/getpopapi/pop-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server