Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

import_upload

Upload a CSV, XLSX, XML, or ZIP file to start a Storno import job for clients, suppliers, products, invoices, receipts, or payments.

Instructions

Upload a file (CSV, XLSX, XML, or ZIP) to start a new import job. Requires importType (clients, suppliers, products, invoices_issued, invoices_received, recurring_invoices, platform_sales, receipts, payments) and source (smartbill, saga, oblio, fgo, facturis_online, easybill, ciel, factureaza, facturare_pro, icefact, bolt, facturis, emag, uber, glovo, tazz, woocommerce, prestashop, cash_register, efactura, generic). Platform statements (uber, bolt, glovo, tazz) use importType platform_sales and become one sales invoice to the platform plus the commission purchase invoice per group; shop exports (woocommerce, prestashop) use invoices_issued; the A4200 XML or a ZIP of a month exported by a fiscal cash register uses source cash_register with importType receipts. The invoice report of another invoicing or accounting program (or any spreadsheet, source generic) uses importType invoices_issued or invoices_received: one row per invoice or one row per invoice line, the mapping is suggested from the usual column names, collection status is read from the file and missing clients are created; the invoice XML those programs export for the accountant (, .xml with source smartbill, saga, oblio, fgo or generic) is read as well. A supplier list exported by another program (or any spreadsheet, source generic) uses importType suppliers: suppliers already known by fiscal code are not duplicated, only completed with the fields they miss. The facturis sales journal also reads columns added to it by their usual names (due date, amount left to pay, paid amount, state, reversed invoice). The invoice target field stornoOf holds the number of the invoice a storno reverses: the storno is linked to it and gets status refund. e-Factura XML (UBL Invoice or CreditNote, one .xml file or a .zip of up to 5000 of them) uses source efactura with importType invoices_issued or invoices_received: the invoices are kept as history with status synced and are never sent to ANAF, a credit note becomes a negative invoice linked to the invoice it names, an invoice of another company is refused with a row error, and numbers already present are skipped. Collections of issued invoices use importType payments (every source that imports invoices, including facturis and generic): one row per payment with invoiceNumber and amount (required), series, paymentDate, paymentMethod, reference, notes. The invoice is found by number, several rows for one invoice are its partial payments, a payment larger than what is left to pay is a row error, and importing the same file again adds nothing. Returns the created import job with preview data.

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": {
      "filePath": "<filePath>",
      "importType": "<importType>",
      "source": "<source>"
    },
    "name": "import_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesSource application the file was exported from; efactura for e-Factura XML files
filePathYesAbsolute path to the file to upload (CSV, XLSX, XML, or a ZIP of A4200 or e-Factura XML files)
companyIdNoCompany UUID override (uses active company if not set)
importTypeYesType of data being imported

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.60
    • changedInput schema / properties / filePath / description
      Previous value: -"Absolute path to the file to upload (CSV, XLSX, XML, or a ZIP of A4200 XML files)"New value: +"Absolute path to the file to upload (CSV, XLSX, XML, or a ZIP of A4200 or e-Factura XML files)"
    • changedInput schema / properties / importType / enum
      Previous value: -[
      -  "clients",
      -  "suppliers",
      -  "products",
      -  "invoices_issued",
      -  "invoices_received",
      -  "recurring_invoices",
      -  "platform_sales",
      -  "receipts"
      -]New value: +[
      +  "clients",
      +  "suppliers",
      +  "products",
      +  "invoices_issued",
      +  "invoices_received",
      +  "recurring_invoices",
      +  "platform_sales",
      +  "receipts",
      +  "payments"
      +]
    • changedInput schema / properties / source / description
      Previous value: -"Source application the file was exported from"New value: +"Source application the file was exported from; efactura for e-Factura XML files"
    • changedInput schema / properties / source / enum
      Previous value: -[
      -  "smartbill",
      -  "saga",
      -  "oblio",
      -  "fgo",
      -  "facturis_online",
      -  "easybill",
      -  "ciel",
      -  "factureaza",
      -  "facturare_pro",
      -  "icefact",
      -  "bolt",
      -  "facturis",
      -  "emag",
      -  "uber",
      -  "glovo",
      -  "tazz",
      -  "woocommerce",
      -  "prestashop",
      -  "cash_register",
      -  "generic"
      -]New value: +[
      +  "smartbill",
      +  "saga",
      +  "oblio",
      +  "fgo",
      +  "facturis_online",
      +  "easybill",
      +  "ciel",
      +  "factureaza",
      +  "facturare_pro",
      +  "icefact",
      +  "bolt",
      +  "facturis",
      +  "emag",
      +  "uber",
      +  "glovo",
      +  "tazz",
      +  "woocommerce",
      +  "prestashop",
      +  "cash_register",
      +  "efactura",
      +  "generic"
      +]
  2. Changed1 schema field changedv1.0.59
    • changedInput schema / properties / importType / enum
      Previous value: -[
      -  "clients",
      -  "products",
      -  "invoices_issued",
      -  "invoices_received",
      -  "recurring_invoices",
      -  "platform_sales",
      -  "receipts"
      -]New value: +[
      +  "clients",
      +  "suppliers",
      +  "products",
      +  "invoices_issued",
      +  "invoices_received",
      +  "recurring_invoices",
      +  "platform_sales",
      +  "receipts"
      +]
  3. Changed3 schema fields changedv1.0.48
    • changedInput schema / properties / filePath / description
      Previous value: -"Absolute path to the file to upload (CSV, XLSX, or XML)"New value: +"Absolute path to the file to upload (CSV, XLSX, XML, or a ZIP of A4200 XML files)"
    • changedInput schema / properties / importType / enum
      Previous value: -[
      -  "clients",
      -  "products",
      -  "invoices_issued",
      -  "invoices_received",
      -  "recurring_invoices"
      -]New value: +[
      +  "clients",
      +  "products",
      +  "invoices_issued",
      +  "invoices_received",
      +  "recurring_invoices",
      +  "platform_sales",
      +  "receipts"
      +]
    • changedInput schema / properties / source / enum
      Previous value: -[
      -  "smartbill",
      -  "saga",
      -  "oblio",
      -  "fgo",
      -  "facturis_online",
      -  "easybill",
      -  "ciel",
      -  "factureaza",
      -  "facturare_pro",
      -  "icefact",
      -  "bolt",
      -  "facturis",
      -  "emag",
      -  "generic"
      -]New value: +[
      +  "smartbill",
      +  "saga",
      +  "oblio",
      +  "fgo",
      +  "facturis_online",
      +  "easybill",
      +  "ciel",
      +  "factureaza",
      +  "facturare_pro",
      +  "icefact",
      +  "bolt",
      +  "facturis",
      +  "emag",
      +  "uber",
      +  "glovo",
      +  "tazz",
      +  "woocommerce",
      +  "prestashop",
      +  "cash_register",
      +  "generic"
      +]
  4. First observedv1.0.17

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare this as a non-read-only, non-idempotent, non-destructive upload, but the description adds substantial behavior beyond them: missing clients are created, known suppliers are not duplicated, e-Factura files are kept as history and never sent to ANAF, duplicate payment rows add nothing, and the tool returns preview data. It does not discuss authentication or rate limits, but the behavioral disclosure is rich for this operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and required parameters are front-loaded, but the rest is a dense single paragraph with long semicolon-separated clauses. Most details are useful for this complex import surface, yet the wall-of-text structure makes it harder to scan than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-complexity import tool, the description covers supported formats, source/type routing, special behaviors, and a brief return statement. With no output schema, it still gives an agent enough information to call the tool correctly and anticipate outcomes.

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 four parameters. The description adds meaningful semantic mapping for the importType and source enums, but it adds little or nothing about companyId or filePath beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Upload a file ... to start a new import job.' It also names supported file formats and required routing parameters, so an agent can identify the tool's purpose without opening the schema.

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 provides extensive scenario-based guidance mapping source/importType combinations to concrete use cases such as platform statements, shop exports, e-Factura XML, and payments. However, it never names sibling tools or states when not to use this upload, so explicit alternatives and exclusions are missing.

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