Skip to main content
Glama
e-arveldaja MCP Server

e-arveldaja MCP Server

by iseppo

Save Annual-Report Account Rule

save_annual_report_account_rule
Idempotent

Save, update, or remove annual-report rules for cash-flow categories or liability classifications, then regenerate annual report data.

Instructions

Save, change or remove one company annual-report account rule after the owner has chosen: rule_type 'cash_flow_category' (operating | investing | financing; any balance-sheet account, e.g. a 24xx account from cash_flow_account_reviews) or 'liability_classification' (current | non_current; Kohustused accounts only). account_id is the account number. remove=true deletes the rule. Writes the accounting-rules store; re-run generate_annual_report_data afterwards.

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": {
      "rule_type": "<rule_type>",
      "account_id": "<account_id>"
    },
    "name": "save_annual_report_account_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNocash_flow_category: operating | investing | financing; liability_classification: current | non_current. Omit with remove=true
removeNotrue deletes the account's rule instead of saving one
rule_typeYesWhich annual-report rule table to edit
account_idYesAccount number in the active company's chart (e.g. 2430)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.43.1

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations it discloses the actual side effect (writes the accounting-rules store), the follow-up regeneration step, and the fact that remove=true deletes rather than overwrites — context the idempotentHint alone does not convey. The only tension is that deletion under remove=true sits mildly at odds with destructiveHint=false, though the scoped, re-creatable nature of a single rule makes this defensible rather than contradictory.

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?

Three tightly packed sentences, front-loaded with the action and followed by per-type constraints and the deletion/regeneration notes; no filler. It is dense to the point of being slightly hard to scan in one pass, but every clause carries operational information.

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 4-parameter write tool with no output schema, it covers the mutation, both rule variants and their account restrictions, the deletion path, and the required downstream regeneration. An agent has everything needed to call it correctly without guessing.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description adds real meaning: it maps each enum value to its rule_type, clarifies 'account_id is the account number', and imposes a constraint not present in the schema at all — liability_classification applies to 'Kohustused accounts only'. That is value beyond structured data.

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 specific verb set (save/change/remove), the exact resource (one company annual-report account rule), and enumerates the two rule families it operates on ('cash_flow_category' vs 'liability_classification'). It also identifies the target store ('accounting-rules store'), which separates it from sibling writers such as save_auto_booking_rule.

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 states a genuine precondition ('after the owner has chosen') and a required follow-up ('re-run generate_annual_report_data afterwards'), plus the remove=true deletion path. It does not, however, name any alternative for reading or reviewing existing rules before editing, so the when-not guidance is only partial.

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