Skip to main content
Glama
iseppo

e-arveldaja MCP Server

by iseppo

Compute Profit and Loss

compute_profit_and_loss
Read-onlyIdempotent

Calculate profit and loss for a date range, subtracting expenses from revenue while excluding year-end close entries. Use to generate accurate income statements.

Instructions

Compute profit and loss statement (kasumiaruanne) for a period. Shows revenue minus expenses; account 9000 (Arvestuslik koondtulemus, the RIK year-end close counter-account) and legacy YECL closing journals are excluded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
freshNoClear cached API/reference data before computing this report (use after web UI changes).
date_toYesPeriod end (YYYY-MM-DD)
date_fromYesPeriod start (YYYY-MM-DD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.25.3
  2. Removedv0.25.2
  3. First observedv0.18.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds valuable behavioral detail beyond annotations: it states that account 9000 and legacy YECL closing journals are excluded, and defines the calculation as revenue minus expenses. This helps the agent understand what data affects the result.

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?

Two short, information-dense sentences. The core purpose is front-loaded, and the exclusion detail is a single dependent clause. No redundant words or restatements.

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 read-only report tool with three documented parameters and no output schema, the description covers the essential semantics: what is computed, what is excluded, and the period requirement. The 'fresh' parameter behavior is documented in the schema. It does not describe return format, but that is not required given the output schema is absent and the tool's simplicity.

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 coverage is 100% – all three parameters (date_from, date_to, fresh) have descriptions in the input schema. The description only adds the contextual phrase 'for a period' and does not add meaning beyond the schema. Baseline 3 is appropriate.

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 states a specific verb ('Compute') and resource ('profit and loss statement') and defines its scope as 'revenue minus expenses'. Including the Estonian term (kasumiaruanne) and the exclusion of specific accounts distinguishes it from sibling tools like compute_balance_sheet and compute_trial_balance.

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

Usage Guidelines3/5

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

The description implies usage for a period-based P&L but does not explicitly say when to choose this over compute_balance_sheet or compute_trial_balance, nor does it mention conditions or alternatives. Context is clear enough for an agent, but no explicit guidance is provided.

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