Skip to main content
Glama
e-arveldaja MCP Server

e-arveldaja MCP Server

by iseppo

Export / Import Company Data

accounting_data_transfer
Destructive

Move a company's local accounting rules and state between machines or API keys via export/import, with dry-run review and owner-approved execution; no e-arveldaja changes.

Instructions

Move this company's local MCP data (saved booking and annual-report rules, plus local state: statement balances, receipt digests, CAMT acknowledgements, limited-VAT settings, Lightyear USD pool) to another machine or a new API key. export = write one .json file (new file only, 0600; no credentials). import = dry run (per file new / identical / differs, row-level rule diffs, state record counts) → owner approval → execute:true + plan_handle. Refused for another company (company_mismatch). Existing state is never overwritten unless named in replace_state_stores; a differing rule file is written only when named in apply_rule_files. Nothing is changed in e-arveldaja.

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": {
      "mode": "<mode>",
      "file_path": "<file_path>"
    },
    "name": "accounting_data_transfer"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesexport | import
executeNoimport: false (default) = dry run; true = execute an approved plan_handle
file_pathYesAbsolute path. export: the new .json file to write; import: the export file to read
plan_handleNoimport with execute:true: the handle from the dry run
apply_rule_filesNoimport: rule files (paths as listed by the dry run) whose imported version replaces a differing local one
replace_state_storesNoimport: state stores whose existing records for this company are replaced by the imported ones

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.43.1

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description adds substantive behavior on top: new-file-only writing with 0600 permissions, no credentials in the output, a mandatory dry-run/approval gate, company-scoped refusal, and the precise no-overwrite/no-apply-by-default semantics. That is exactly the context an agent needs before invoking a destructive transfer.

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?

Front-loaded with the purpose, then the export path, then the import path, then the safety guarantees — no sentence is filler. The telegraphic "export = ... / import = ..." structure makes the mode split scannable despite the density.

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?

There is no output schema, yet the description describes what the import dry run returns (per-file new/identical/differs, row-level rule diffs, state record counts) and what export produces (one .json file). For a 6-parameter destructive tool, the agent has everything needed to call it safely and interpret the result.

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 coverage is 100%, so the baseline is 3; the description still adds real semantics beyond it — that execute:true requires a plan_handle from the dry run, that file_path is a new file on export, and that a differing rule file is written only when named in apply_rule_files. The remaining gap is minor: it does not restate the enumerated state-store names, which the schema already lists.

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 names a concrete verb+resource ("Move this company's local MCP data ... to another machine or a new API key") and enumerates exactly what payload is moved (booking/annual-report rules, statement balances, receipt digests, CAMT acknowledgements, limited-VAT settings, Lightyear USD pool). It also bounds the scope with "Nothing is changed in e-arveldaja," which separates it from the sibling accounting tools that do mutate e-arveldaja data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It spells out the two modes and their full workflow: export writes one new .json file; import goes dry run → owner approval → execute:true + plan_handle. Exclusions are explicit ("Refused for another company (company_mismatch)"), as is the override condition ("Existing state is never overwritten unless named in replace_state_stores").

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