Skip to main content
Glama

Trial balance (balanta de verificare)

saga_trial_balance
Read-onlyIdempotent

Retrieve a period trial balance with opening balance, previous and period turnover, totals, and closing balance per account at synthetic, analytic, or group3 level.

Instructions

Trial balance for a period: opening balance at 1 January, previous turnover, period turnover, totals and closing balance per account. level: synthetic (default; e.g. 401), analytic (as stored, e.g. 401.00012) or group3 (first 3 digits).

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": {
      "date_from": "<date_from>",
      "date_to": "<date_to>"
    },
    "name": "saga_trial_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
firmNoFirm code (folder name such as "0001"). Optional when only one firm is configured.
levelNo
prefixNoOnly accounts starting with this, e.g. "6" or "401".
date_toYesEnd date, YYYY-MM-DD (inclusive).
date_fromYesStart date, YYYY-MM-DD (inclusive).
include_zeroNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so the safety profile needs no restating. The description does add real value by defining the returned columns and the fixed 1 January opening-balance baseline, but says nothing about ordering, aggregation rules or how zero-balance accounts are treated.

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 dense sentences: the returned figures come first, then the level semantics. Nothing is repeated from the annotations and no sentence is filler.

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 six-parameter read-only report with no output schema, describing the computed columns is the most important thing the description can do, and it does so. The remaining shortfall is that prefix and include_zero behavior is left to the schema.

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?

With only 67% schema coverage, the description usefully defines the level enum: synthetic (default, e.g. 401), analytic (as stored, e.g. 401.00012) and group3 (first 3 digits), which the schema leaves bare. It does not clarify prefix matching or include_zero, so the gap is only partly closed.

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?

The description names a specific report (trial balance) and enumerates exactly what it returns per account: opening balance at 1 January, previous turnover, period turnover, totals and closing balance. That is enough for an agent to distinguish it from a detail-oriented sibling such as saga_account_ledger, though no sibling is named explicitly.

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?

Usage is only implied by 'Trial balance for a period'; there is no statement of when to prefer this over saga_account_ledger or saga_vat_summary, and no prerequisites are mentioned. The level enumeration does guide one internal choice, but not tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.