Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

companies_update

Idempotent

Updates a company's editable settings—contact info, bank details, sync options, enabled modules, and automatic overdue reminder steps—while leaving ANAF-synced core data unchanged.

Instructions

Update configuration settings for a company. Note: core ANAF data (CIF, registration number, VAT status, official address) cannot be modified as they are synced from official ANAF sources. Only editable fields like contact info, bank details, and sync settings can be changed. Also sets the automatic overdue reminders: overdueRemindersEnabled turns them on, overdueReminderSteps sets when each email goes out and what it says. A step is sent on its day or up to 2 days late, never later, so turning the reminders on does not email clients about invoices that are long overdue. Exclude one client with clients_update (overdueRemindersDisabled) or one invoice with invoices_overdue_reminders.

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": {
      "uuid": "<uuid>"
    },
    "name": "companies_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoCompany display name
uuidYesCompany UUID
emailNoContact email address
phoneNoContact phone number
bankBicNoBIC/SWIFT code
bankNameNoBank name
bankAccountNoIBAN account number
syncDaysBackNoNumber of days to sync back from ANAF (1-365)
archiveEnabledNoEnable automatic archiving
enabledModulesNoArray of enabled module keys for sidebar visibility (null = all enabled). Valid keys: delivery_notes, receipts, proforma_invoices, recurring_invoices, reports, efactura, spv_messages
defaultCurrencyNoDefault currency code (e.g., "RON", "EUR")
efacturaDelayHoursNoHours to delay e-Factura sync (0-72)
overdueReminderStepsNoReminder steps, 1 to 5. null restores the default steps (3, 7 and 14 days). Subject and body take the variables [[client_name]], [[invoice_number]], [[total]], [[balance]], [[currency]], [[due_date]], [[issue_date]], [[days_overdue]], [[company_name]], [[client_outstanding]]
archiveRetentionYearsNoYears to retain archived data (1-50)
overdueRemindersEnabledNoTurn the automatic overdue reminders on or off (default off). When on, the client of each overdue, unpaid issued invoice gets one email per reminder step

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.60
    • addedInput schema / properties / overdueReminderSteps
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "body": {
      +            "anyOf": [
      +              {
      +                "maxLength": 5000,
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Email body, up to 5000 characters. Omit or null for the default body"
      +          },
      +          "days": {
      +            "description": "Days after the due date when this step is sent (1-365, unique across the steps)",
      +            "maximum": 365,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "subject": {
      +            "anyOf": [
      +              {
      +                "maxLength": 200,
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Email subject, one line, up to 200 characters, without < or >. Omit or null for the default subject"
      +          }
      +        },
      +        "required": [
      +          "days"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 5,
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Reminder steps, 1 to 5. null restores the default steps (3, 7 and 14 days). Subject and body take the variables [[client_name]], [[invoice_number]], [[total]], [[balance]], [[currency]], [[due_date]], [[issue_date]], [[days_overdue]], [[company_name]], [[client_outstanding]]"
      +}
    • addedInput schema / properties / overdueRemindersEnabled
      Added value: +{
      +  "description": "Turn the automatic overdue reminders on or off (default off). When on, the client of each overdue, unpaid issued invoice gets one email per reminder step",
      +  "type": "boolean"
      +}
  2. First observedv1.0.17

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare idempotent, non-destructive, non-read-only behavior, so the bar is low, yet the description still adds substantive traits: which fields are immutable by design, that overdueReminderSteps null restores the default 3/7/14-day schedule, and that steps fire on their day or up to two days late but never later. That timing caveat is exactly the kind of consequence an agent cannot infer from the schema.

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 paragraph is front-loaded with purpose and immutability before moving to the reminder mechanics, and each sentence carries information. The reminder discussion is dense but earns its space given the subtle delivery-window rule. Minor cost: it reads as one long block without visual separation between the update scope and the reminder sub-feature.

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 15-parameter mutation with full schema coverage and annotations covering safety, the description covers the two areas where an agent would otherwise guess: immutability of ANAF data and the reminder scheduling semantics. It does not state the partial-update contract (unspecified fields left untouched), which is the one notable gap for an update tool.

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 every parameter, establishing a baseline of 3. The description adds real meaning for two fields (overdueRemindersEnabled/overdueReminderSteps timing and the null-restores-default behavior), but leaves the other thirteen parameters entirely to the schema. Net effect is a modest lift over baseline, not a full 4.

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+resource ('Update configuration settings for a company') and immediately narrows scope by enumerating what is immutable (CIF, registration number, VAT status, official address) versus editable (contact info, bank details, sync settings). It further carves out the reminder-setting sub-function, so an agent knows exactly what surface this tool covers.

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 explicitly routes the agent away from this tool when the goal is excluding a single client (clients_update with overdueRemindersDisabled) or a single invoice (invoices_overdue_reminders), which is genuine alternative guidance. It also clarifies that ANAF-sourced fields cannot be changed here, preventing a futile call. It does not state a general 'use when' condition for partial updates, but the exclusions are concrete.

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