Skip to main content
Glama
stornoro

Storno CLI

Official
by stornoro

balance_analysis

Read-onlyIdempotent

Retrieve annual financial analysis for a company and year, including profit, liquidity, solvency, cashflow, aging, concentration and tax-estimate indicators.

Instructions

Get balance analysis (Analiza Balante) for a year. Returns the standard indicator bag (revenue, expenses, profit, turnover, salaries, etc.), monthly evolution, top expenses, year-over-year comparison, plus 8 grouped financial-ratio sections: balanceSheet (raw figures), liquidity (current/quick/cash ratio + working capital + NFR + net cash), solvency (debt-to-equity, financial autonomy, debt ratio, general solvency, interest coverage), profitabilityRatios (gross/operating/EBITDA/net margins, ROA/ROE/ROCE, EBIT, EBITDA), efficiency (asset/fixed-asset/inventory turnover, DSO/DPO/CCC), fiscal (VAT payable, salary debts, state-budget debts, micro-enterprise EUR threshold, VAT RON threshold), cashflow (cash runway in months, burn rate, break-even, contribution rate, operating leverage), aging (receivables aging buckets 0-30/31-60/61-90/90+ with IFRS 9 simplified provision), concentration (top 5/10 client revenue share, top clients list), profitTaxEstimate (information only, from invoices alone: per quarter and year to date, revenue from issued invoices and expenses from received invoices in RON — invoice rate, else BNR monthly average — gross profit, 16% profit tax and the 1%/3% micro tax for comparison; salaries, payment fees and non-invoiced costs are missing, so the real tax is lower; with tips[] — sponsorship headroom, reinvested-profit lever for the running quarter, missing-expenses warning, dividends after taxes, employee benefits, R&D, advance payments). Each ratio carries status: normal|warning|critical|na. Trial-balance sections show hasData=false until balances are uploaded; aging, concentration and profitTaxEstimate come from invoice data. Requires X-Company header.

Input Schema

NameRequiredDescriptionDefault
yearYesAnalysis year (e.g. 2025)
companyIdNoCompany UUID (overrides STORNO_COMPANY_ID env var)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.28

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior. The description adds valuable context beyond that: it explains data availability (trial-balance sections show hasData=false until balances are uploaded; aging, concentration, and profitTaxEstimate come from invoice data) and discloses limitations of profitTaxEstimate (information only, from invoices alone, real tax lower), plus the X-Company header requirement.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The main purpose is front-loaded in the first sentence. However, the description is a single dense run-on sentence with semicolons that could be better structured into sections for readability. While the extensive enumeration is justified by the lack of an output schema, the delivery is not optimally concise.

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?

Given the tool's complexity (many computed financial ratios) and the absence of an output schema, the description is remarkably complete. It covers all major output sections, caveats about data sources, the X-Company header requirement, and limitations of profitTaxEstimate. An agent has enough information to call the tool correctly.

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 schemas already document both parameters (year and companyId) with descriptions. The tool description adds no additional meaning about parameter formats, constraints, or behavior beyond what the schema provides, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Get) and resource (balance analysis), and enumerates the returned indicators in detail. The purpose is unmistakable, but it does not explicitly contrast with sibling tools like balance_list or balance_rows, so it lacks sibling differentiation.

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 by stating it returns analysis for a year, but it offers no explicit when-to-use guidance, no when-not-to-use conditions, and no named alternatives. The prerequisite of X-Company header is noted but is not usage guidance.

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