Skip to main content
Glama
stornoro

Storno CLI

by stornoro

declaration_validate_xml

Validate ANAF tax declaration XML using ANAF's official DUKIntegrator validators, returning errors and warnings verbatim. Automatically correct missing namespaces and receive the corrected XML for filing.

Instructions

Validate an ANAF tax declaration XML (D212 Declaratia unica, C168 rent contract registration, D177, D700, D100, D112, D300, D390, D394 …) with ANAF's own DUKIntegrator validators, the same jars the ANAF portal uses. Public endpoint: no account needed, nothing is stored, 60 requests/hour per IP. Returns ANAF's errors and warnings verbatim. When the root namespace is missing or belongs to another reporting period, Storno applies the namespace ANAF asks for and returns the corrected XML (namespaceCorrected=true): upload that one. Use it before filing in SPV, or in a build → validate → fix loop when assembling a declaration from a taxpayer's documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlYesThe declaration XML document (max 4 MB)
typeNoForm code, e.g. D212, C168, D300. Inferred from the root element when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.28

TDQS

A3.8/5.0
Behavior4/5

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

The description discloses important behaviors: it is a public endpoint with no account needed, nothing is stored, there is a rate limit of 60 requests/hour per IP, and it returns errors/warnings verbatim. It also explains the namespace correction behavior. The typo 'Storno' introduces minor confusion but does not undermine transparency.

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 description is informative but somewhat repetitive and overlong. It repeats phrases like 'ANAF portal uses' and includes redundant qualifiers. The 'Storno' typo and the parenthetical listing of forms add noise. It could be tightened without losing needed detail.

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 that this is a validation endpoint with no output schema, the description sufficiently covers what the tool does, its side effects, rate limits, special handling of namespaces, and typical use cases. It is complete enough for an agent to decide when and how to invoke it.

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 covers both parameters (xml and type) with descriptions, including the max size for xml and the inference behavior for type. The tool description adds little beyond what the schema already states, so this is at the baseline for full schema coverage.

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?

The description clearly states a specific action (validate an ANAF tax declaration XML) and names the resource (ANAF's DUKIntegrator validators), with a list of supported forms. It distinguishes itself from sibling tools by focusing on raw XML validation, though it does not explicitly contrast with the similarly named 'declarations_validate'.

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 concrete usage guidance: use before filing in SPV, or in a build-validate-fix loop. It also instructs to upload the corrected XML when namespaceCorrected=true. It does not explicitly state when not to use it, but the primary scenarios are clear.

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