Skip to main content
Glama
stornoro

Storno CLI

Official
by stornoro

document_series_numbering_decision

Read-onlyIdempotent

Generate the yearly internal decision (OMFP 2634/2015) that names the numbering responsible and lists series ranges per document type, as JSON or signed-ready PDF.

Instructions

Decizia de numerotare: the yearly internal decision (OMFP 2634/2015) that names the person responsible for allocating document numbers and lists, per document type, the series and the number range allocated for the year. Built from the company's document series: first number = the first number issued in that year (or the next free number), planned last number = first + rangeSize - 1 (extended to the highest number already issued). Returns the decision as JSON (company identification, legal basis, rows with firstNumber/lastNumber/format, warnings for missing representative or registration number); pass outFile to save the signed-ready PDF instead ("DECIZIA nr. … din …", table, signature block, Romanian).

Input Schema

NameRequiredDescriptionDefault
yearNoYear of the decision (default: current year)
outFileNoWhere to write the PDF; when omitted the decision is returned as JSON
companyIdNoCompany UUID override (uses active company if not set)
rangeSizeNoNumbers allocated per series; planned last number = first + rangeSize - 1 (default 9999)
responsibleNoPerson responsible for numbering (default: the company representative)
decisionDateNoDecision date YYYY-MM-DD (default 1 January of the year)
decisionNumberNoDecision number (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.48

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial behavior beyond that: the numbering arithmetic (first = first issued or next free, last = first + rangeSize - 1, extended to the highest number already issued), the warning conditions for a missing representative or registration number, and the PDF layout when outFile is supplied. The one nuance left unstated is that supplying outFile writes a file to disk, which is a mild side effect not reflected in readOnlyHint=true.

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?

Front-loaded with the definition and legal basis, then derivation rules, then return/output behavior — a logical order with no filler. It is dense (two long sentences packing many clauses), so it is slightly heavy to parse, but every clause carries information an agent needs.

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?

With no output schema, 7 optional parameters and no annotations covering semantics, the description does the heavy lifting: it describes the returned JSON sections and the PDF contents, plus the warning cases. It does not say what happens when no document series exist for the company or how errors surface, which is the main remaining gap.

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 goes further by explaining what rangeSize actually produces (the extension to the highest already-issued number) and contrasting the two output modes governed by outFile (JSON vs signed-ready PDF). year, decisionDate, decisionNumber and responsible are left largely to the schema, but the schema documents them adequately.

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 identifies the concrete artifact produced (the yearly numbering decision under OMFP 2634/2015) and how it is derived from the company's document series, which clearly separates it from siblings like document_series_list or document_series_create. The generation verb itself is only implied ('Returns the decision as JSON', 'pass outFile to save the PDF') rather than stated up front, which keeps it just short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by the legal framing (a yearly decision naming the numbering-responsible person), so an agent can infer this is the once-a-year compliance document for a company. However, there is no explicit when-to-use / when-not-to-use statement and no alternative tool is named (e.g. document_series_list for inspecting series, document_generate for other documents).

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