Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

receipts_update

Idempotent

Updates an existing draft or issued receipt and replaces all line items with the provided array.

Instructions

Update an existing receipt. Receipts in draft or issued status can be updated. Replaces all line items with the provided array.

Input Schema

NameRequiredDescriptionDefault
uuidYesUUID of the receipt to update
linesYesArray of line items (replaces all existing lines)
notesNoPublic notes on the receipt
clientIdNoUUID of the client (optional for receipts)
currencyYesCurrency code (e.g., RON, EUR, USD)
issuerIdNoUUID of the issuer user
mentionsNoAdditional mentions or instructions
seriesIdNoUUID of the receipt series
companyIdNoCompany UUID (overrides configured default)
issueDateYesDate of issue (YYYY-MM-DD)
issuerNameNoName of person issuing the receipt
salesAgentNoSales agent name
cardPaymentNoAmount paid by card (for mixed payments)
cashPaymentNoAmount paid in cash (for mixed payments)
customerCifNoCustomer tax ID / CIF (when no clientId is provided)
customerNameNoCustomer name (when no clientId is provided)
exchangeRateNoExchange rate to base currency
fiscalNumberNoFiscal receipt number assigned by the cash register
internalNoteNoInternal note (not visible to customer)
otherPaymentNoAmount paid by other method, e.g. meal ticket (for mixed payments)
paymentMethodNoPayment method used for the transaction
cashRegisterNameNoName or identifier of the cash register / fiscal printer
documentSeriesIdNoUUID of the document series to use (alternative to seriesId)
projectReferenceNoRelated project or order reference

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive behavior. The description adds important operational context beyond annotations: status eligibility and the fact that all line items are replaced, which is critical for an agent to avoid unintended data loss.

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, front-loaded with the action and status constraint, followed by the replacement behavior. Every sentence carries necessary operational meaning with no filler.

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?

Given rich annotations and 100% schema coverage, the description is nearly complete for a mutation tool. It covers status restrictions and line replacement, though it could mention that unspecified fields remain unchanged or clarify response behavior, but no output schema exists.

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 24 parameters are documented in the schema. The description reinforces line replacement semantics but does not add new parameter-level detail beyond what the schema already provides, so 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 receipt') and clarifies the operation applies only to receipts in draft or issued status. It is clearly distinct from create/issue siblings, though it does not explicitly name an alternative tool.

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?

It gives a clear condition for use: receipts in draft or issued status can be updated. It does not explicitly state when not to use it or which sibling to use instead, but the status constraint provides meaningful usage context.

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