Skip to main content
Glama
stornoro

Storno CLI

by stornoro

document_generate

Generate lease termination or contract termination legal documents as PDF/HTML from structured fields, with option to save locally or receive base64 for signing.

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

TableJSON 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.3/5.0
Behavior4/5

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

With no annotations, the description still discloses that the endpoint is public, nothing is stored, and that passing outFile writes the PDF locally. It also describes the base64 return when outFile is omitted. Minor details like overwrite behavior are not mentioned, but the main side effects are transparent.

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 dense but not padded; it packs document schemas, date format, output behavior, and signing guidance into a compact form. The nested bracket notation is efficient, though the list is long.

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 there is no output schema and no annotations, the description provides enough context for basic invocation: inputs, nested fields, optionality, date format, output delivery, and storage behavior. It could be more precise about the role of HTML and response structure, but the core usage is complete.

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?

The schema covers the top-level parameters, and the description expands the 'fields' object by enumerating the nested fields for each document type, marking optional ones with '?', and specifying the date format. The semantics of outFile are also explained.

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 clearly states the action ('Generate a standard legal document as PDF'), names the exact document types, and enumerates the accepted 'type' values. It is easy to distinguish from the many sibling tools because the scope is specific and explicit.

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 explains the two output modes (outFile vs base64) and explicitly points to agent_sign_pdf for signing. It does not directly contrast with declaration_build/declaration_pdf, but the document-type restriction and follow-up signing guidance are clear enough for practical use.

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