Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

delivery_notes_update

Idempotent

Update existing draft or issued delivery notes and replace all line items with a provided array. Use it to revise client, dates, currency, notes, and delivery details before reissuing.

Instructions

Update an existing delivery note. Delivery notes in draft or issued 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>",
      "issueDate": "<issueDate>",
      "dueDate": "<dueDate>",
      "currency": "<currency>",
      "lines": "<lines>"
    },
    "name": "delivery_notes_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
uuidYesUUID of the delivery note to update
linesYesArray of line items (replaces all existing lines)
notesNoPublic notes about the delivery
dueDateYesDue date for invoicing (YYYY-MM-DD)
clientIdYesUUID of the client
currencyYesCurrency code (e.g., RON, EUR, USD)
issuerIdNoUUID of the issuer user
mentionsNoAdditional mentions or instructions
seriesIdNoUUID of the delivery note series
companyIdNoCompany UUID (overrides configured default)
issueDateYesDate of issue (YYYY-MM-DD)
deputyAutoNoVehicle registration number
deputyNameNoName of person who received the delivery
issuerNameNoName of person issuing the delivery note
salesAgentNoSales agent name
exchangeRateNoExchange rate to base currency
internalNoteNoInternal note (not visible to client)
deliveryLocationNoFull address where goods were delivered
documentSeriesIdNoUUID of the document series to use (alternative to seriesId)
projectReferenceNoRelated project or order reference
deputyIdentityCardNoID card number of the deputy
etransportTrailer1NoFirst trailer registration number
etransportTrailer2NoSecond trailer registration number
etransportEndCountyNoEnd county code (1-52)
etransportEndNumberNoEnd street number
etransportEndStreetNoEnd street name
etransportEndLocalityNoEnd locality name
etransportStartCountyNoStart county code (1-52)
etransportStartNumberNoStart street number
etransportStartStreetNoStart street name
etransportEndOtherInfoNoEnd additional address info
etransportPostIncidentNoPost-incident declaration
etransportEndPostalCodeNoEnd postal code
etransportOperationTypeNoOperation type code: 10, 12, 20, 30 (TTN), 40, 50, 60
etransportStartLocalityNoStart locality name
etransportTransportDateNoTransport start date (YYYY-MM-DD)
etransportVehicleNumberNoVehicle registration number (3-20 uppercase alphanumeric)
etransportStartOtherInfoNoStart additional address info
etransportStartPostalCodeNoStart postal code
etransportTransporterCodeNoTransporter CUI/CIF (numeric only)
etransportTransporterNameNoTransporter legal name
etransportTransporterCountryNoTransporter country code (e.g., "RO")

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

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

Annotations already declare readOnly=false, idempotent=true and destructive=false, so the bar is lower. The description still adds two meaningful traits beyond them: the status precondition and the fact that the lines array replaces all existing line items, which an agent could otherwise misread as an append given destructiveHint=false.

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 with zero filler; the replacement semantics are front-loaded in the first line where an agent will see them before composing the call.

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 42-parameter mutation that wholesale replaces line items, the description says nothing about required-field expectations, e-Transport obligations, or what happens to omitted optional fields. The rich schema compensates for parameter meaning, but the risk profile of a full line replacement deserves more than one clause.

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 coverage is 100% and every parameter, including the deeply documented line-item fields and e-Transport requirements, is described in the schema itself. The description adds no syntax, defaults, or conditional logic beyond calling lines 'the provided array', so the 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?

The description states a specific verb and resource ('Update an existing delivery note') and narrows the target to notes in draft or issued status. It does not explicitly name a sibling such as delivery_notes_create or delivery_notes_issue to route between them, so it stops short of a 5.

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 precondition 'draft or issued status can be updated' gives a real usage boundary, but there is no statement of when to prefer an alternative (issue, cancel, convert) or what to do for notes in other statuses. Usage is implied rather than fully guided.

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