Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

delivery_notes_update

Idempotent

Update an existing draft or issued delivery note and replace all line items with a provided array. Use it to revise delivery details, dates, currency, client, or e-Transport fields.

Instructions

Update an existing delivery note. Delivery notes in draft or issued status can be updated. Replaces all line items with the provided array.

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. First observedv1.0.17

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly=false, idempotent=true, destructive=false), and the description adds a materially important behavior beyond them: line items are replaced wholesale, so any existing line omitted from the array disappears. It still omits permissions/auth requirements and whether updating re-triggers e-Transport validation. Note the mild tension: wholesale line replacement destroys existing line data even though 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, zero filler, and the core operation plus the two constraints are front-loaded. Nothing repeated and nothing padded.

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 42-parameter mutation tool with no output schema, the description supplies the two things the schema cannot: when the call is legal (status) and what it does to existing lines. Gaps remain around series/numbering effects on update and whether e-Transport fields must be resupplied, but these are secondary given full schema coverage.

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% across all 42 parameters, so the schema already explains uuid, the required line fields, and the e-Transport fields. The description only echoes the array-level replacement semantics that the schema's own line description states, adding no new parameter meaning.

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?

Specific verb+resource: "Update an existing delivery note" with two concrete constraints (draft/issued status, full line replacement). It does not name siblings such as delivery_notes_create or delivery_notes_cancel, relying on the name for differentiation, which keeps it just 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 status precondition ("draft or issued status can be updated") is real usage guidance, implying issued-but-cancelled/storno notes are not updatable. However, it never names an alternative tool or says what to do instead (e.g., delivery_notes_get to read current lines before overwriting, or delivery_notes_cancel for finalized notes).

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