Skip to main content
Glama
stornoro

Storno CLI

by stornoro

proforma_invoices_update

Update draft proforma invoices by replacing all line items. Modify dates, client, currency, and other details to correct or revise pending documents.

Instructions

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

Input Schema

TableJSON 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
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It discloses the crucial 'replaces all line items' destructive behavior and the draft-status requirement, which are the two most important behavioral traits. However, it doesn't mention whether updates to non-draft invoices fail or are ignored, what happens to required fields if omitted, or any permission/authorization requirements.

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?

The description is three concise sentences with front-loaded purpose. Each sentence earns its place: the verb+resource, the draft status constraint, and the line replacement behavior. It's appropriately brief for a tool with a well-documented schema and doesn't repeat information already present in the parameter descriptions.

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 complex mutation tool with 23 parameters (8 required), the description covers the critical behavioral facets: the draft-status gate and the destructive line-item replacement. No output schema exists, so return-value details aren't expected. The description doesn't cover edge cases like partial updates (can notes be updated alone?) or whether all required fields must be re-sent, but given the schema's thoroughness, this is a reasonable trade-off.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 23 parameters thoroughly. The description adds meaningful value beyond the schema by explaining the 'lines' array replaces all existing line items, which is a semantic nuance not captured in the parameter description. It clarifies that the array semantic is full replacement rather than merge, which is high-value information.

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+resource ('Update an existing proforma invoice') and adds the key behavioral constraint that only drafts can be updated. However, it doesn't explicitly distinguish from sibling tools like proforma_invoices_create, though the name itself makes the update-vs-create distinction clear. The draft-status restriction is valuable differentiator.

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?

The description provides clear context that this is for updating existing invoices in draft status, which gives a usage boundary. It doesn't explicitly name alternatives (e.g., that proforma_invoices_create is for new invoices), but the draft-status precondition and the line replacement behavior together give practical usage guidance. It lacks explicit when-not-to-use exclusions or mention of related flows like convert or send.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stornoro/storno-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server