Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

proforma_invoices_convert

Convert a proforma invoice into a final invoice, copying all proforma data, marking the proforma as converted, and linking both documents.

Instructions

Convert a proforma invoice into a final invoice. Creates a new invoice with all proforma data, marks proforma as converted, and links the two documents. Returns both the new invoice and updated proforma.

Input Schema

NameRequiredDescriptionDefault
uuidYesUUID of the proforma invoice to convert
dueDateNoOverride due date for the new invoice (default: proforma due date, YYYY-MM-DD)
companyIdNoCompany UUID (overrides configured default)
issueDateNoOverride issue date for the new invoice (default: today, YYYY-MM-DD)
invoiceSeriesIdNoUUID of invoice series to use (if different from proforma series)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish that this is a non-read-only, non-idempotent, non-destructive mutation, so the bar is lower. The description adds valuable behavioral detail beyond annotations: it creates a new invoice, marks the proforma as converted, links the two documents, and returns both records. It does not warn about duplicate conversion risk, permissions, or error conditions, which keeps it from a 5.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the primary action and followed by the side effects and return value. No redundant restatement of the tool name or title.

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 mutation tool with complete parameter descriptions and annotations, the description covers the core action, side effects, and return values. It could be more complete by stating prerequisites, duplicate-call behavior, and error/status constraints, but what is present is sufficient for correct invocation in most cases.

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?

Schema description coverage is 100%, so the schema already documents uuid and each override parameter (dueDate, companyId, issueDate, invoiceSeriesId). The description adds no parameter-specific guidance beyond saying the new invoice contains all proforma data, so baseline 3 is appropriate.

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 (convert) and resource (proforma invoice), plus the concrete outcome: a new final invoice is created, the proforma is marked converted, and both documents are linked. An agent can distinguish this from proforma list/get/create/update/delete siblings without opening the schema.

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 conversion action, but the description does not say when this should be used versus proforma_invoices_accept, proforma_invoices_reject, or invoices_create directly. It also omits prerequisites such as whether the proforma must be in a particular status before conversion.

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