Skip to main content
Glama
stornoro

Storno CLI

by stornoro

declarations_download_pdf

Generate the ANAF-compliant declaration PDF for manual submission via SPV or e-guvernare. Runs Storno's rules and ANAF's validator, then writes the PDF to the target file.

Instructions

The PDF ANAF accepts for this declaration (DUKIntegrator's form with the XML embedded and, for C168, the attachment zip), generated on demand from the current data. Use it when the user files by hand: they upload this file in SPV (persoane fizice: SPV → Depunere declarații) or on the e-guvernare portal with their own certificate. Written to outFile. Storno's rules and ANAF's validator run first; errors come back instead of a broken file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesDeclaration UUID
outFileYesWhere to write the PDF
refreshNoRegenerate even if a PDF was already produced (drafts only)
companyIdNoCompany UUID (overrides STORNO_COMPANY_ID env var)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.37

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It states that the PDF is generated on demand, that Storno's rules and ANAF's validator run first, and that errors are returned instead of a broken file. It could also clarify caching/reuse behavior related to the refresh flag, but the disclosure is strong.

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 compact and front-loaded with the key artifact and use case. Each sentence contributes purpose, workflow context, output location, or validation behavior, with no filler, though the first sentence is somewhat dense with parentheticals.

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?

For a 4-parameter tool with no annotations or output schema, the description covers the output format, manual-filing workflow, validation ordering, and error behavior, which is enough to invoke it safely. Remaining gaps are along the edges: behavior when a PDF was already produced, and the success return shape.

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?

The input schema already describes all four parameters in detail, including id, outFile, refresh, and companyId, so the description adds little per-parameter meaning beyond the schema. The mention that the PDF is written to outFile repeats schema information rather than extending 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 names a concrete artifact—the ANAF-accepted PDF for this declaration in DUKIntegrator form with embedded XML, plus attachment zip for C168—and clarifies it is generated from current data. The specific format and filing channel set it apart from generic PDF or XML-download siblings.

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?

It explicitly tells the agent when to use the tool: when the user files by hand via SPV or the e-guvernare portal with their own certificate. It does not name alternatives such as agent-based submission or list when-not-to-use, so it stops 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.

Deploy Server

Other Tools