Skip to main content
Glama
stornoro

Storno CLI

Official
by stornoro

document_generate

Read-onlyIdempotent

Generate standard Romanian rental termination agreements or declarations as PDF/HTML from structured fields, saving the PDF locally for signing or returning it as base64.

Instructions

Generate a standard legal document as PDF (and HTML) from fields: 'conventie_incetare_inchiriere' (fields: data_conventie?, locator{nume, adresa, ci_serie?, ci_numar?, cnp?}, locatar{same}, contract{numar, data, adresa_imobil, numar_inregistrare_anaf?, data_inregistrare_anaf?}, data_incetare, termen_utilitati_zile?, garantie{suma?, valuta?, termen_zile?}) or 'declaratie_incetare_contract' (locator{nume, adresa, cnp?}, locatar{nume, cnp?}, contract{numar, data, adresa_imobil, data_inceput, data_sfarsit, chirie?, valuta?, numar_inregistrare_anaf?, data_inregistrare_anaf?}, data_incetare, motiv?, motiv_detalii?, organ_fiscal?, data_declaratie?). Dates as dd.mm.yyyy. Pass outFile to save the PDF locally (then sign it with agent_sign_pdf or have it signed by hand); otherwise the PDF comes back base64. Public, nothing stored.

Input Schema

NameRequiredDescriptionDefault
typeYes
fieldsYesDocument fields (see description)
outFileNoPath where the PDF is written; when omitted the response carries pdfBase64

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.28

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world; the description adds genuinely new behavior: dual PDF+HTML output, the base64-vs-local-file dichotomy, and the no-storage/public nature. It stops short of covering failure modes (invalid field sets, missing required keys, what happens if outFile path is unwritable).

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 purpose and output modes, then the field spec. Every element earns its place, but the dense parenthetical field grammar is hard to scan and would benefit from flatter structuring; it is long because it is information-dense, not padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With nested objects, no output schema, and an opaque `fields` parameter, the description carries the full burden and does: document types, required vs optional fields, date format, output transport, and the natural next step (signing). No output schema means the return-value explanation it provides is essential and present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

This is the tool's key strength: the `fields` object is opaque in the schema (additionalProperties), and the description supplies the full per-type schema including nested locator/locatar/contract/garantie objects and which subfields are optional. It also explains the outFile/response tradeoff and the date format dd.mm.yyyy, which the schema does not.

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 (generate) and resource (legal document), names the two supported document types and enumerates their required field shapes, so an agent knows exactly what will be produced. This is far beyond a restatement of the name and clearly distinguishes it from sibling builders like declaration_build or dosare_document by document type.

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?

Gives concrete operational guidance: pass outFile to persist the PDF and then sign with agent_sign_pdf, or omit it to receive base64, plus 'Public, nothing stored.' It does not explicitly say when to prefer this over the sibling declaration_* or proforma/document PDF tools, so routing among similar generators is left partly to inference.

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