Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

import_execute

Run a confirmed import job asynchronously; optionally filter invoices, orders, or receipts by period/client, then check status with import_get.

Instructions

Execute an import job after mapping is confirmed. The import runs asynchronously via a message queue. Check status with import_get. For invoice imports, importOptions.dateFrom / dateTo / clientCifs import only the invoices of a period or of some partners; an invalid value returns 422.

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": {
      "id": "<id>"
    },
    "name": "import_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesImport job ID
companyIdNoCompany UUID override (uses active company if not set)
importOptionsNoOptional import options: markAsPaid (invoice imports); dateFrom and dateTo (YYYY-MM-DD, issue date, inclusive) and clientCifs (array of tax codes, or one string separated by commas, spaces or newlines; the RO prefix and spacing are ignored; at most 2000) keep only part of an invoice file, the other rows count as skipped, and with a filter set a row without a readable date or tax code is skipped too; groupBy = week | day | order and platformName / platformCif / platformCountry (platform_sales); includeAll to import orders whose status is not paid / completed (WooCommerce, PrestaShop); cashRegisterName, vatGroups ({"1": "21", "2": "11", "3": "5", "4": "0"}) and paymentTypes ({"1": "cash", "3": "card"}) for receipts

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.60
    • changedInput schema / properties / importOptions / description
      Previous value: -"Optional import options: markAsPaid (invoice imports); groupBy = week | day | order and platformName / platformCif / platformCountry (platform_sales); includeAll to import orders whose status is not paid / completed (WooCommerce, PrestaShop); cashRegisterName, vatGroups ({\"1\": \"21\", \"2\": \"11\", \"3\": \"5\", \"4\": \"0\"}) and paymentTypes ({\"1\": \"cash\", \"3\": \"card\"}) for receipts"New value: +"Optional import options: markAsPaid (invoice imports); dateFrom and dateTo (YYYY-MM-DD, issue date, inclusive) and clientCifs (array of tax codes, or one string separated by commas, spaces or newlines; the RO prefix and spacing are ignored; at most 2000) keep only part of an invoice file, the other rows count as skipped, and with a filter set a row without a readable date or tax code is skipped too; groupBy = week | day | order and platformName / platformCif / platformCountry (platform_sales); includeAll to import orders whose status is not paid / completed (WooCommerce, PrestaShop); cashRegisterName, vatGroups ({\"1\": \"21\", \"2\": \"11\", \"3\": \"5\", \"4\": \"0\"}) and paymentTypes ({\"1\": \"cash\", \"3\": \"card\"}) for receipts"
  2. Changed1 schema field changedv1.0.48
    • changedInput schema / properties / importOptions / description
      Previous value: -"Optional import options (e.g., skipDuplicates, updateExisting)"New value: +"Optional import options: markAsPaid (invoice imports); groupBy = week | day | order and platformName / platformCif / platformCountry (platform_sales); includeAll to import orders whose status is not paid / completed (WooCommerce, PrestaShop); cashRegisterName, vatGroups ({\"1\": \"21\", \"2\": \"11\", \"3\": \"5\", \"4\": \"0\"}) and paymentTypes ({\"1\": \"cash\", \"3\": \"card\"}) for receipts"
  3. First observedv1.0.17

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, but the description adds genuinely new behavior: the run is asynchronous via a message queue, and invalid filter values return 422. It also explains that filtered-out rows count as skipped rather than failing the import, which is material to interpreting results.

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?

Front-loaded with the action and its precondition, then async behavior, then the status sibling, then parameter nuance. Four sentences with no filler, though the final sentence is dense and mixes several option families into one block.

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?

Covers execution, asynchrony, follow-up polling and the most error-prone options for a 3-parameter mutation tool with a nested object and no output schema. The main remaining gap is that it never says what is returned on success (e.g., a job handle), which matters since no output schema exists.

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 baseline is 3; the description goes beyond it by explaining that dateFrom/dateTo/clientCifs scope an invoice file to a period or partner set and that unreadable rows are skipped when a filter is active. It does not elaborate on other options such as markAsPaid, groupBy or the platform fields, leaving those entirely to the schema.

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?

States a specific verb and resource ('Execute an import job') plus the precondition ('after mapping is confirmed'), which distinguishes it from sibling steps like import_mapping, import_preview and import_get. An agent can identify the action and its position in the import workflow 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?

Gives sequencing guidance ('after mapping is confirmed') and explicitly routes status polling to import_get, which is the right alternative. It does not state exclusions (e.g., don't re-execute a running job), so it falls short of full when/when-not coverage.

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