Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

proforma_invoices_update

Idempotent

Update a draft proforma invoice by replacing its line items and details. Use it to revise pending proforma invoices before issuing; only invoices in draft status can be changed.

Instructions

Update an existing proforma invoice. Only invoices in draft status can be updated. Replaces all line items with the provided array.

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": {
      "uuid": "<uuid>",
      "clientId": "<clientId>",
      "seriesId": "<seriesId>",
      "issueDate": "<issueDate>",
      "dueDate": "<dueDate>",
      "validUntil": "<validUntil>",
      "currency": "<currency>",
      "lines": "<lines>"
    },
    "name": "proforma_invoices_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
uuidYesUUID of the proforma invoice to update
linesYesArray of line items (replaces all existing lines)
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
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
internalNoteNoInternal note (not visible to client)
paymentTermsNoPayment terms description
contractNumberNoRelated contract number
invoiceTypeCodeNoTax regime / invoice type code
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

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false. The description adds two pieces of context the annotations do not carry: a draft-only precondition and the fact that line items are fully replaced rather than merged, which is the main way an agent can silently lose data here. It still does not say what error or response a non-draft invoice produces.

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 short sentences, zero waste, with the core action first and the two operational constraints immediately after. Nothing could be removed without losing information.

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

Completeness3/5

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

For a 23-parameter mutation with no output schema, the description covers the two biggest hazards (draft-only, line replacement) but omits that all eight required fields must be re-supplied on every update. It also does not state the failure mode for a non-draft invoice. Adequate, but a full-replacement update needs more.

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%, with 23 parameters (8 required) each documented inline, including the nested line-item VAT precedence rules. The description only restates the `lines` semantics already present in the schema ("replaces all existing lines"), and adds nothing about the eight required fields or the optional metadata fields. Baseline 3 applies.

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?

States a specific verb and resource ("Update an existing proforma invoice"), which separates it from proforma_invoices_create and proforma_invoices_delete without opening a schema. It never names those siblings explicitly, so differentiation is implied rather than stated.

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?

"Only invoices in draft status can be updated" is a real gating condition that tells the agent when the call will work, and it implies the when-not case. It does not point to any alternative path (e.g., what to do for a non-draft invoice, or when to use create instead), so guidance is clear but not routing.

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