Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

delivery_notes_create

Create a draft delivery note to document delivered goods or services and proof of delivery, then convert it to an invoice when ready.

Instructions

Create a new delivery note in draft status. Delivery notes document physical delivery of goods or services and can later be converted to invoices. Include deputy information for proof of delivery. A default delivery_note series is auto-assigned if neither seriesId nor documentSeriesId is provided.

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>",
      "issueDate": "<issueDate>",
      "dueDate": "<dueDate>",
      "currency": "<currency>",
      "lines": "<lines>"
    },
    "name": "delivery_notes_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesArray of line items (minimum 1 required)
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 (uses default series if not provided)
companyIdNoCompany UUID (overrides configured default)
issueDateYesDate of issue (YYYY-MM-DD)
deputyAutoNoVehicle registration number used for delivery
deputyNameNoName of person who received the delivery
issuerNameNoName of person issuing the delivery note
salesAgentNoSales agent name
exchangeRateNoExchange rate to base currency (default: 1.0 for RON)
internalNoteNoInternal note (not visible to client)
deliveryLocationNoFull address where goods were delivered
documentSeriesIdNoUUID of the document series to use (alternative to seriesId; uses default delivery_note series if neither is provided)
projectReferenceNoRelated project or order reference
deputyIdentityCardNoID card number of the deputy
etransportTrailer1NoFirst trailer registration number
etransportTrailer2NoSecond trailer registration number
etransportEndCountyNoEnd county code (1-52). Required for e-Transport (BR-211)
etransportEndNumberNoEnd street number
etransportEndStreetNoEnd street name (2-100 chars)
etransportEndLocalityNoEnd locality name (2-100 chars)
etransportStartCountyNoStart county code (1-52 per ANAF nomenclature, e.g., 4=Bacau, 40=Bucuresti). Required for e-Transport (BR-210)
etransportStartNumberNoStart street number
etransportStartStreetNoStart street name (2-100 chars per BR-215)
etransportEndOtherInfoNoEnd additional address info
etransportPostIncidentNoPost-incident declaration (after the transport was completed)
etransportEndPostalCodeNoEnd postal code
etransportOperationTypeNoOperation type code: 10 (intra-community acquisition), 12 (intra-community delivery), 20 (transaction in national territory between two different entities with goods moving domestically), 30 (domestic transport document TTN), 40 (import), 50 (export), 60 (goods not released for circulation)
etransportStartLocalityNoStart locality name (2-100 chars per BR-214)
etransportTransportDateNoTransport start date (YYYY-MM-DD)
etransportVehicleNumberNoVehicle registration number (e.g., "BC01ABC"). Schematron BR-031: 3-20 uppercase alphanumeric chars
etransportStartOtherInfoNoStart additional address info
etransportStartPostalCodeNoStart postal code
etransportTransporterCodeNoTransporter CUI/CIF (numeric only, e.g., "31385365"). Must match ANAF format per BR-002
etransportTransporterNameNoTransporter legal name (e.g., "UNIVERSAL EQUIPMENT PROJECTS SRL")
etransportTransporterCountryNoTransporter country code (ISO 3166-1 alpha-2, e.g., "RO"). For TTN (opType 30) must be "RO" per BR-005

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

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false, idempotentHint=false). The description adds real behavior beyond that: the record is created in draft status rather than issued, and a default delivery_note series is auto-assigned when neither seriesId nor documentSeriesId is supplied. It does not warn that repeated calls create duplicates despite idempotentHint=false, which is the main remaining gap.

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?

Three short sentences, front-loaded with the core action, then purpose, then a practical default-series note with no filler. The final sentence largely duplicates the seriesId/documentSeriesId schema text, so it is slightly redundant but still useful up front.

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 41-parameter creation tool with no output schema, the definition is adequate but thin: it says nothing about the extensive e-Transport field block (required per operation type), about which fields are mandatory (clientId, issueDate, dueDate, currency, lines), or about the companion validate/submit e-Transport tools. It covers the happy path but leaves the agent to mine the schema for the complex parts.

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 all 41 parameters in detail, including the series fallback logic that the description restates. The only added meaning is "Include deputy information for proof of delivery", which explains why the deputy* fields exist, but this is marginal against a fully documented schema.

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?

"Create a new delivery note in draft status" gives a specific verb and resource, and the second sentence explains what a delivery note is and that it converts to an invoice later. It does not name a sibling tool (e.g. delivery_notes_issue or delivery_notes_convert) by way of differentiation, so it lands just short of the top mark.

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 only implied: creating a draft that is "later converted to invoices" suggests the position of this tool in the workflow, but no explicit when-to-use/when-not case, prerequisites, or alternative (e.g. delivery_notes_from_proforma for proforma-based creation) is stated.

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