Skip to main content
Glama
stornoro

Storno CLI

by stornoro

declarations_file_via_agent

File an ANAF declaration by preparing the XML and DUK PDF, signing with the local agent's qualified certificate, and uploading to e-guvernare for processing.

Instructions

File a declaration at ANAF in one call, the way the web app does: Storno prepares the XML and the DUK PDF (with the attachment zip for c168), the local Storno Agent signs it with the qualified certificate and uploads it to the e-guvernare portal, and Storno records ANAF's upload index (status processing; the recipisa arrives in the SPV inbox and in the dosar). Needs the agent on this computer and the PIN (pin, STORNO_AGENT_PIN, or the PIN remembered on this computer by the agent). Check declarations_validate first. Remember: one C168 per landlord and period in processing at a time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesDeclaration UUID
pinNoToken PIN; defaults to STORNO_AGENT_PIN, or to the PIN the agent remembers for this certificate
companyIdNoCompany UUID (overrides STORNO_COMPANY_ID env var)
certificateIdYesCertificate id from agent_certificates

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.37

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the transparency burden and does well by disclosing side effects: signing with the qualified certificate, uploading to the e-guvernare portal, recording ANAF's upload index, and eventual receipt in the SPV inbox and dosar. It does not explicitly warn that filing is legally consequential or irreversible, which would make it fully transparent.

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 dense but not bloated. Each sentence adds critical operational context: the end-to-end workflow, prerequisites, the validate-first recommendation, and the concurrency constraint. Slightly long, but every part earns its place.

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 complexity of the operation, the description covers the workflow, prerequisites, constraints, and expected outcome (status processing, recipisa in SPV inbox and dosar). It does not describe return values, but no output schema exists, so this is not a major gap. It feels complete enough for an agent to invoke safely.

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?

The schema covers all parameters, and the description adds useful meaning beyond raw property names: id is the declaration UUID, certificateId comes from agent_certificates, pin defaults to STORNO_AGENT_PIN or a remembered PIN, and companyId overrides STORNO_COMPANY_ID. This enriches the schema rather than merely repeating it.

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 clearly states the tool's purpose: to file a declaration at ANAF in one call. It details the full pipeline (prepare XML, DUK PDF, sign, upload, record index) and distinguishes itself from related tools by explicitly directing users to check declarations_validate first.

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 gives practical usage guidance: prerequisites (agent on this computer, PIN), the recommended pre-step (declarations_validate), and a key constraint (one C168 per landlord and period in processing). It lacks explicit comparison to alternatives like declarations_submit or agent_submit_declaration_pdf, so it is not perfectly complete.

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

Deploy Server

Other Tools