Skip to main content
Glama
stornoro

Storno CLI

by stornoro

declarations_create

Create a new tax declaration (VAT, payroll, SAF-T, or special regimes). Auto-populates from invoices for the period, with form input support for d212 and c168.

Instructions

Create a new tax declaration. VAT and payroll types (d394, d300, d390, d100, d112) are auto-populated from the company's invoices for the period; so are 'd301' (decont special de TVA for companies not registered for VAT: purchases from abroad with self-assessed VAT, monthly) and 'd398' (OSS / regimul UE: special-regime art. 314-315 sales to consumers in other member states, quarterly, any month of the quarter) and 'd406' (SAF-T: the whole audit file — header, accounts, customers / suppliers, tax codes, the ledger derived from the documents and the source documents — for the company's VAT period, periodType monthly or quarterly). Form-based types are filled from plain JSON: 'd212' (Declarația unică, rent income; month 12) and 'c168' (rental contract registration/amendment/termination; month 12) take data.input in the shape of declaration_form_spec, and c168 needs data.attachments [{name, contentBase64}] (the scanned contract / termination document) for the PDF. Then declarations_validate → declarations_file_via_agent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoFor d212 / c168: { input: <form input>, attachments?: [{name, contentBase64}] }. Responses return attachments as {name, size, mime, stored} without the content; sending that shape back keeps the stored files
typeYesDeclaration type
yearYesDeclaration year (e.g. 2026)
monthYesDeclaration month (1–12)
dosarIdNoAttach the new declaration to this dosar
companyIdNoCompany UUID (overrides STORNO_COMPANY_ID env var)
periodTypeNoPeriod type (default: "monthly")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.48
    • changedInput schema / properties / data / description
      Previous value: -"For d212 / c168: { input: <form input>, attachments?: [{name, contentBase64}] }"New value: +"For d212 / c168: { input: <form input>, attachments?: [{name, contentBase64}] }. Responses return attachments as {name, size, mime, stored} without the content; sending that shape back keeps the stored files"
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "d394",
      -  "d300",
      -  "d390",
      -  "d100",
      -  "d112",
      -  "d212",
      -  "c168"
      -]New value: +[
      +  "d394",
      +  "d300",
      +  "d390",
      +  "d301",
      +  "d398",
      +  "d406",
      +  "d100",
      +  "d112",
      +  "d212",
      +  "c168"
      +]
  2. Changed3 schema fields changedv1.0.37
    • addedInput schema / properties / data
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "For d212 / c168: { input: <form input>, attachments?: [{name, contentBase64}] }",
      +  "type": "object"
      +}
    • addedInput schema / properties / dosarId
      Added value: +{
      +  "description": "Attach the new declaration to this dosar",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "d394",
      -  "d300",
      -  "d390",
      -  "d100",
      -  "d112"
      -]New value: +[
      +  "d394",
      +  "d300",
      +  "d390",
      +  "d100",
      +  "d112",
      +  "d212",
      +  "c168"
      +]
  3. First observedv1.0.17

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and largely delivers: it discloses that VAT/payroll types are auto-populated, that c168 requires attachments as [{name, contentBase64}], that d406 depends on periodType, and that responses return attachments stripped of content ({name, size, mime, stored}). This is rich behavioral context for a mutating create operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is highly valuable but presented as one dense paragraph with heavy nested parentheses, making it hard to scan. The core purpose is front-loaded, but the type-by-type detail would benefit from bullet-point structure or a table. No sentences are wasted, but the organization undermines readability.

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 complex 7-parameter tool with 10 enum variants and nested objects, the description covers type semantics, auto-population behavior, input shapes, attachment requirements, and the post-creation workflow. There is no output schema, and return-value details are only partially addressed (via the attachments round-trip note), so it is not perfect, but it is complete enough for an agent to call correctly.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds substantial meaning beyond the schema: it decodes every enum value into a real-world declaration, explains which types are monthly vs quarterly, and specifies the data.input shape (declaration_form_spec) and the attachment format. This meaningfully extends what the property descriptions alone convey.

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+resource ('Create a new tax declaration') and immediately distinguishes the auto-populated types from the form-based types, giving each of the 10 enum values concrete meaning. An agent can tell exactly what this tool produces and which input path each type follows.

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?

Clearly explains which types are auto-populated from invoices and which require JSON form input, plus the period/month constraints for d301, d398, d406, d212 and c168. The closing workflow hint (declarations_validate → declarations_file_via_agent) routes the agent to the correct follow-up. It stops short of explicitly naming excluded alternatives like declarations_prepare or declarations_upload, but the guidance is strong.

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