Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

proforma_invoices_create

Create a draft proforma invoice with line items, multiple currencies, discounts, and optional references for client approval before final billing.

Instructions

Create a new proforma invoice in draft status with line items. Supports multiple currencies, discounts, and optional references.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "clientId": "<clientId>",
      "seriesId": "<seriesId>",
      "issueDate": "<issueDate>",
      "dueDate": "<dueDate>",
      "validUntil": "<validUntil>",
      "currency": "<currency>",
      "lines": "<lines>"
    },
    "name": "proforma_invoices_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesArray of line items (minimum 1 required)
notesNoPublic notes visible to client
dueDateYesPayment due date (YYYY-MM-DD)
clientIdYesUUID of the client
currencyYesCurrency code (e.g., RON, EUR, USD)
issuerIdNoUUID of the issuer user
languageNoDocument language for PDF generation (default: ro)
mentionsNoAdditional mentions or notes
seriesIdYesUUID of the invoice series configured for proforma invoices
companyIdNoCompany UUID (overrides configured default)
issueDateYesDate of issue (YYYY-MM-DD)
issuerNameNoName of person issuing the proforma
salesAgentNoSales agent name
validUntilYesValid until date (YYYY-MM-DD)
orderNumberNoClient purchase order number
exchangeRateNoExchange rate to base currency (default: 1.0 for RON)
internalNoteNoInternal note (not visible to client)
paymentTermsNoPayment terms description (e.g., "Net 30")
contractNumberNoRelated contract number
invoiceTypeCodeNoTax regime / invoice type code (default: standard)
deliveryLocationNoDelivery address or location
projectReferenceNoRelated project reference

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.59
    • addedInput schema / properties / lines / items / properties / vatCategoryCode
      Added value: +{
      +  "description": "UBL VAT category code. Default S; a 0% rate becomes Z on its own. Set it only for special cases: O (not subject to VAT), E (exempt), AE (reverse charge), K (intra-community), G (export).",
      +  "type": "string"
      +}
    • addedInput schema / properties / lines / items / properties / vatRate
      Added value: +{
      +  "description": "VAT percentage for the line, e.g. 21, 11, 9 or 0. Wins over vatRateId. With neither sent the line gets 21%, so for a company that is not a VAT payer always send 0.",
      +  "type": "number"
      +}
    • changedInput schema / properties / lines / items / properties / vatRateId / description
      Previous value: -"UUID of the VAT rate"New value: +"VAT rate UUID from vat_rates_list: the line takes that rate's percentage and category. Send this or vatRate. With neither, the line gets 21% VAT, also when the company is not a VAT payer."
    • changedInput schema / properties / lines / items / required
      Previous value: -[
      -  "description",
      -  "quantity",
      -  "unitPrice",
      -  "vatRateId"
      -]New value: +[
      +  "description",
      +  "quantity",
      +  "unitPrice"
      +]
  2. First observedv1.0.17

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare that this is a non-read-only, non-idempotent, non-destructive write confined to the account (openWorldHint=false), so the safety profile is covered. The description adds genuinely useful behavior beyond that by stating the invoice is created in draft status, but it does not disclose what happens on a bad series/currency combination, whether a duplicate call creates a second invoice, or what is returned.

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?

Two short sentences with the core action and the draft-state constraint front-loaded, and no filler or repetition of the tool name. The trailing feature list ("currencies, discounts, optional references") is slightly redundant against the schema but is brief enough not to waste the reader's time.

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

Completeness2/5

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

For a 22-parameter creation tool with no output schema, the description is thin: it never says whether the created proforma (or its ID) is returned, how numbering is assigned from seriesId, or that currency/exchangeRate must be coherent. The draft-status fact is the only real compensating context, leaving an agent to discover mutation results empirically.

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 all 22 parameters, including the nested line-item fields with their detailed VAT fallback rules, are already documented in the schema. The description adds only a high-level hint that currencies, discounts, and optional references are supported, which does not add syntax or meaning for any individual parameter. Baseline 3 is appropriate.

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 uses a specific verb and resource ("Create a new proforma invoice") and adds the key state qualifier "in draft status with line items." It is clearly distinguishable from siblings like proforma_invoices_update or proforma_invoices_convert, though it never names the closest alternative, invoices_create, to clarify the proforma-vs-invoice distinction.

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?

The mention of "draft status" implies this is the starting point before sending, accepting, or converting, but the description never states prerequisites (a configured series, an existing client UUID) or when to prefer this over invoices_create or recurring_invoices_create. Usage must be inferred from the surrounding toolset rather than read from the definition.

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